{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_Replication.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}15 Aug 2020, 12:06:54

{com}. **** SET YOUR WORKING DIRECTORY HERE"

. 
. global data="G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"

. 
. **************************************************************

. 
. 
. 
. global radius = 100

. 
. global precision = 2

. 
. 
. 
. set more off

. 
. set maxvar 20000


. 
. set matsize 11000

. 
. 
. 
. use "$data\ISQ_REPLICATION.dta", replace

. 
. 
. 
. **** Set Results File HERE

. 
. global results="C:\Results\ISQ_Replicate"

. 
. 
. 
. *** RUN Respondent Regressions at 50km base

. 
. 
. 
. **TABLE 1

. 
. 
. 
. *Model 1 - All FDI

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. reg bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   127.74
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0936
                                                {txt}Root MSE          =    {res}  .3585

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0098716{col 26}{space 2} .0041035{col 37}{space 1}    2.41{col 46}{space 3}0.016{col 54}{space 4} .0018278{col 67}{space 3} .0179155
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0229355{col 26}{space 2} .0051056{col 37}{space 1}    4.49{col 46}{space 3}0.000{col 54}{space 4} .0129274{col 67}{space 3} .0329436
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.3017748{col 26}{space 2} .0357725{col 37}{space 1}   -8.44{col 46}{space 3}0.000{col 54}{space 4}-.3718973{col 67}{space 3}-.2316524
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.2383144{col 26}{space 2} .0345146{col 37}{space 1}   -6.90{col 46}{space 3}0.000{col 54}{space 4}-.3059711{col 67}{space 3}-.1706577
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} -.384741{col 26}{space 2} .0336557{col 37}{space 1}  -11.43{col 46}{space 3}0.000{col 54}{space 4}-.4507141{col 67}{space 3}-.3187679
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2537269{col 26}{space 2} .0340069{col 37}{space 1}   -7.46{col 46}{space 3}0.000{col 54}{space 4}-.3203884{col 67}{space 3}-.1870655
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2173932{col 26}{space 2} .0392578{col 37}{space 1}   -5.54{col 46}{space 3}0.000{col 54}{space 4}-.2943477{col 67}{space 3}-.1404387
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.1170938{col 26}{space 2} .0372493{col 37}{space 1}   -3.14{col 46}{space 3}0.002{col 54}{space 4} -.190111{col 67}{space 3}-.0440765
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.3722492{col 26}{space 2} .0338787{col 37}{space 1}  -10.99{col 46}{space 3}0.000{col 54}{space 4}-.4386593{col 67}{space 3}-.3058391
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.1992826{col 26}{space 2} .0353662{col 37}{space 1}   -5.63{col 46}{space 3}0.000{col 54}{space 4}-.2686086{col 67}{space 3}-.1299565
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1067879{col 26}{space 2}  .040543{col 37}{space 1}   -2.63{col 46}{space 3}0.008{col 54}{space 4}-.1862616{col 67}{space 3}-.0273142
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.2374108{col 26}{space 2} .0343646{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.3047734{col 67}{space 3}-.1700482
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.2278169{col 26}{space 2} .0340413{col 37}{space 1}   -6.69{col 46}{space 3}0.000{col 54}{space 4}-.2945458{col 67}{space 3} -.161088
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1750063{col 26}{space 2} .0361353{col 37}{space 1}   -4.84{col 46}{space 3}0.000{col 54}{space 4}-.2458399{col 67}{space 3}-.1041726
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}-.0402553{col 26}{space 2} .0347101{col 37}{space 1}   -1.16{col 46}{space 3}0.246{col 54}{space 4}-.1082952{col 67}{space 3} .0277845
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2830061{col 26}{space 2} .0349571{col 37}{space 1}   -8.10{col 46}{space 3}0.000{col 54}{space 4}-.3515301{col 67}{space 3} -.214482
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.0701286{col 26}{space 2} .0379708{col 37}{space 1}   -1.85{col 46}{space 3}0.065{col 54}{space 4}-.1445602{col 67}{space 3}  .004303
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.2750217{col 26}{space 2} .0342504{col 37}{space 1}   -8.03{col 46}{space 3}0.000{col 54}{space 4}-.3421605{col 67}{space 3} -.207883
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.3444962{col 26}{space 2} .0340485{col 37}{space 1}  -10.12{col 46}{space 3}0.000{col 54}{space 4}-.4112392{col 67}{space 3}-.2777532
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.2515124{col 26}{space 2} .0340674{col 37}{space 1}   -7.38{col 46}{space 3}0.000{col 54}{space 4}-.3182926{col 67}{space 3}-.1847322
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -.357029{col 26}{space 2} .0338531{col 37}{space 1}  -10.55{col 46}{space 3}0.000{col 54}{space 4}-.4233891{col 67}{space 3} -.290669
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1484202{col 26}{space 2} .0342626{col 37}{space 1}   -4.33{col 46}{space 3}0.000{col 54}{space 4}-.2155829{col 67}{space 3}-.0812575
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.3316437{col 26}{space 2} .0339979{col 37}{space 1}   -9.75{col 46}{space 3}0.000{col 54}{space 4}-.3982876{col 67}{space 3}-.2649997
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.2666455{col 26}{space 2} .0340496{col 37}{space 1}   -7.83{col 46}{space 3}0.000{col 54}{space 4}-.3333907{col 67}{space 3}-.1999003
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}-.1163095{col 26}{space 2} .0347058{col 37}{space 1}   -3.35{col 46}{space 3}0.001{col 54}{space 4} -.184341{col 67}{space 3}-.0482781
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.2590289{col 26}{space 2} .0339849{col 37}{space 1}   -7.62{col 46}{space 3}0.000{col 54}{space 4}-.3256473{col 67}{space 3}-.1924106
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} -.019831{col 26}{space 2} .0380797{col 37}{space 1}   -0.52{col 46}{space 3}0.603{col 54}{space 4}-.0944761{col 67}{space 3} .0548142
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.3402545{col 26}{space 2} .0335217{col 37}{space 1}  -10.15{col 46}{space 3}0.000{col 54}{space 4}-.4059649{col 67}{space 3}-.2745442
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.1554453{col 26}{space 2} .0385355{col 37}{space 1}   -4.03{col 46}{space 3}0.000{col 54}{space 4} -.230984{col 67}{space 3}-.0799066
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.2796945{col 26}{space 2} .0338442{col 37}{space 1}   -8.26{col 46}{space 3}0.000{col 54}{space 4} -.346037{col 67}{space 3}-.2133519
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.2475275{col 26}{space 2} .0369403{col 37}{space 1}   -6.70{col 46}{space 3}0.000{col 54}{space 4}-.3199391{col 67}{space 3}-.1751159
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.2702805{col 26}{space 2}  .034311{col 37}{space 1}   -7.88{col 46}{space 3}0.000{col 54}{space 4} -.337538{col 67}{space 3}-.2030229
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2140151{col 26}{space 2} .0348775{col 37}{space 1}   -6.14{col 46}{space 3}0.000{col 54}{space 4}-.2823833{col 67}{space 3} -.145647
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} -.327679{col 26}{space 2} .0342798{col 37}{space 1}   -9.56{col 46}{space 3}0.000{col 54}{space 4}-.3948755{col 67}{space 3}-.2604825
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.1393631{col 26}{space 2} .0349672{col 37}{space 1}   -3.99{col 46}{space 3}0.000{col 54}{space 4} -.207907{col 67}{space 3}-.0708192
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.2602253{col 26}{space 2} .0346377{col 37}{space 1}   -7.51{col 46}{space 3}0.000{col 54}{space 4}-.3281232{col 67}{space 3}-.1923274
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}-.1516464{col 26}{space 2} .0353404{col 37}{space 1}   -4.29{col 46}{space 3}0.000{col 54}{space 4}-.2209219{col 67}{space 3}-.0823709
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0042101{col 26}{space 2} .0276287{col 37}{space 1}    0.15{col 46}{space 3}0.879{col 54}{space 4}-.0499486{col 67}{space 3} .0583689
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0194992{col 26}{space 2}  .027962{col 37}{space 1}    0.70{col 46}{space 3}0.486{col 54}{space 4} -.035313{col 67}{space 3} .0743113
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0129623{col 26}{space 2} .0269944{col 37}{space 1}    0.48{col 46}{space 3}0.631{col 54}{space 4}-.0399531{col 67}{space 3} .0658777
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0563133{col 26}{space 2} .0281955{col 37}{space 1}    2.00{col 46}{space 3}0.046{col 54}{space 4} .0010435{col 67}{space 3} .1115831
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0104528{col 26}{space 2} .0271038{col 37}{space 1}    0.39{col 46}{space 3}0.700{col 54}{space 4}-.0426769{col 67}{space 3} .0635826
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0906547{col 26}{space 2} .0331731{col 37}{space 1}    2.73{col 46}{space 3}0.006{col 54}{space 4} .0256276{col 67}{space 3} .1556818
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0247591{col 26}{space 2} .0279783{col 37}{space 1}    0.88{col 46}{space 3}0.376{col 54}{space 4}-.0300849{col 67}{space 3} .0796032
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0149206{col 26}{space 2} .0271453{col 37}{space 1}    0.55{col 46}{space 3}0.583{col 54}{space 4}-.0382905{col 67}{space 3} .0681317
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0373716{col 26}{space 2} .0279548{col 37}{space 1}    1.34{col 46}{space 3}0.181{col 54}{space 4}-.0174264{col 67}{space 3} .0921695
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0720684{col 26}{space 2} .0267598{col 37}{space 1}   -2.69{col 46}{space 3}0.007{col 54}{space 4}-.1245238{col 67}{space 3}-.0196129
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0709118{col 26}{space 2} .0277844{col 37}{space 1}   -2.55{col 46}{space 3}0.011{col 54}{space 4}-.1253757{col 67}{space 3}-.0164479
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037995{col 26}{space 2} .0003793{col 37}{space 1}   10.02{col 46}{space 3}0.000{col 54}{space 4}  .003056{col 67}{space 3}  .004543
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0056179{col 26}{space 2} .0004141{col 37}{space 1}  -13.57{col 46}{space 3}0.000{col 54}{space 4}-.0064296{col 67}{space 3}-.0048062
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0683042{col 26}{space 2} .0022642{col 37}{space 1}  -30.17{col 46}{space 3}0.000{col 54}{space 4}-.0727425{col 67}{space 3}-.0638659
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0330746{col 26}{space 2} .0033351{col 37}{space 1}    9.92{col 46}{space 3}0.000{col 54}{space 4} .0265371{col 67}{space 3} .0396121
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3744197{col 26}{space 2} .0439435{col 37}{space 1}    8.52{col 46}{space 3}0.000{col 54}{space 4} .2882801{col 67}{space 3} .4605593
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.13
{txt}{col 13}Prob > F ={res}    0.0235

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01306384

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(All FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 2 - FDI from High Corruption Countries

. 
. gen active50_highcorr=0

. 
. replace active50_highcorr=active_binary_50 if mean_cpi_50<=median_cpi
{txt}(15,633 real changes made)

{com}. 
. gen inactive50_highcorr=0

. 
. replace inactive50_highcorr=inactive_50 if mean_cpi_50<=median_cpi
{txt}(10,475 real changes made)

{com}. 
. gen active=active50_highcorr

. 
. gen inactive=inactive50_highcorr

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   126.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0937
                                                {txt}Root MSE          =    {res} .35847

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0146576{col 26}{space 2} .0051207{col 37}{space 1}    2.86{col 46}{space 3}0.004{col 54}{space 4} .0046198{col 67}{space 3} .0246954
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0291713{col 26}{space 2} .0059381{col 37}{space 1}    4.91{col 46}{space 3}0.000{col 54}{space 4} .0175313{col 67}{space 3} .0408113
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0777104{col 26}{space 2} .0257064{col 37}{space 1}   -3.02{col 46}{space 3}0.003{col 54}{space 4} -.128101{col 67}{space 3}-.0273197
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0147223{col 26}{space 2} .0227772{col 37}{space 1}   -0.65{col 46}{space 3}0.518{col 54}{space 4}-.0593709{col 67}{space 3} .0299263
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1643892{col 26}{space 2} .0212269{col 37}{space 1}   -7.74{col 46}{space 3}0.000{col 54}{space 4}-.2059989{col 67}{space 3}-.1227795
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0338956{col 26}{space 2} .0223108{col 37}{space 1}   -1.52{col 46}{space 3}0.129{col 54}{space 4}  -.07763{col 67}{space 3} .0098388
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .1026169{col 26}{space 2} .0278279{col 37}{space 1}    3.69{col 46}{space 3}0.000{col 54}{space 4} .0480676{col 67}{space 3} .1571662
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1560241{col 26}{space 2} .0217977{col 37}{space 1}   -7.16{col 46}{space 3}0.000{col 54}{space 4}-.1987527{col 67}{space 3}-.1132956
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0239292{col 26}{space 2}  .024385{col 37}{space 1}    0.98{col 46}{space 3}0.326{col 54}{space 4}-.0238712{col 67}{space 3} .0717295
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1198256{col 26}{space 2} .0321858{col 37}{space 1}    3.72{col 46}{space 3}0.000{col 54}{space 4} .0567339{col 67}{space 3} .1829173
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0182024{col 26}{space 2} .0239217{col 37}{space 1}   -0.76{col 46}{space 3}0.447{col 54}{space 4}-.0650946{col 67}{space 3} .0286897
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0083353{col 26}{space 2} .0218151{col 37}{space 1}   -0.38{col 46}{space 3}0.702{col 54}{space 4}-.0510981{col 67}{space 3} .0344275
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0453931{col 26}{space 2} .0262504{col 37}{space 1}    1.73{col 46}{space 3}0.084{col 54}{space 4} -.006064{col 67}{space 3} .0968501
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1835519{col 26}{space 2} .0229565{col 37}{space 1}    8.00{col 46}{space 3}0.000{col 54}{space 4} .1385517{col 67}{space 3} .2285521
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0632708{col 26}{space 2} .0232012{col 37}{space 1}   -2.73{col 46}{space 3}0.006{col 54}{space 4}-.1087505{col 67}{space 3}-.0177911
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1469203{col 26}{space 2} .0270635{col 37}{space 1}    5.43{col 46}{space 3}0.000{col 54}{space 4} .0938695{col 67}{space 3} .1999711
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0503285{col 26}{space 2}  .022554{col 37}{space 1}   -2.23{col 46}{space 3}0.026{col 54}{space 4}-.0945396{col 67}{space 3}-.0061174
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1251526{col 26}{space 2}  .021691{col 37}{space 1}   -5.77{col 46}{space 3}0.000{col 54}{space 4}-.1676719{col 67}{space 3}-.0826332
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0320088{col 26}{space 2} .0218161{col 37}{space 1}   -1.47{col 46}{space 3}0.142{col 54}{space 4}-.0747735{col 67}{space 3} .0107559
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1278856{col 26}{space 2} .0214399{col 37}{space 1}   -5.96{col 46}{space 3}0.000{col 54}{space 4}-.1699127{col 67}{space 3}-.0858584
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2279704{col 26}{space 2} .0393393{col 37}{space 1}    5.79{col 46}{space 3}0.000{col 54}{space 4} .1508562{col 67}{space 3} .3050845
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0762243{col 26}{space 2} .0226204{col 37}{space 1}    3.37{col 46}{space 3}0.001{col 54}{space 4}  .031883{col 67}{space 3} .1205656
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} -.113915{col 26}{space 2} .0218169{col 37}{space 1}   -5.22{col 46}{space 3}0.000{col 54}{space 4}-.1566812{col 67}{space 3}-.0711489
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0438794{col 26}{space 2} .0232755{col 37}{space 1}   -1.89{col 46}{space 3}0.059{col 54}{space 4}-.0895049{col 67}{space 3} .0017461
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1063343{col 26}{space 2} .0228928{col 37}{space 1}    4.64{col 46}{space 3}0.000{col 54}{space 4} .0614591{col 67}{space 3} .1512094
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0343675{col 26}{space 2} .0222957{col 37}{space 1}   -1.54{col 46}{space 3}0.123{col 54}{space 4}-.0780722{col 67}{space 3} .0093372
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .2012752{col 26}{space 2} .0283408{col 37}{space 1}    7.10{col 46}{space 3}0.000{col 54}{space 4} .1457206{col 67}{space 3} .2568297
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1124213{col 26}{space 2} .0219305{col 37}{space 1}   -5.13{col 46}{space 3}0.000{col 54}{space 4}-.1554102{col 67}{space 3}-.0694324
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0642956{col 26}{space 2} .0295829{col 37}{space 1}    2.17{col 46}{space 3}0.030{col 54}{space 4} .0063061{col 67}{space 3} .1222851
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0599559{col 26}{space 2} .0229158{col 37}{space 1}   -2.62{col 46}{space 3}0.009{col 54}{space 4}-.1048762{col 67}{space 3}-.0150356
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0268314{col 26}{space 2} .0273668{col 37}{space 1}   -0.98{col 46}{space 3}0.327{col 54}{space 4}-.0804766{col 67}{space 3} .0268139
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0516822{col 26}{space 2}  .022091{col 37}{space 1}   -2.34{col 46}{space 3}0.019{col 54}{space 4}-.0949858{col 67}{space 3}-.0083786
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}  .007527{col 26}{space 2} .0229592{col 37}{space 1}    0.33{col 46}{space 3}0.743{col 54}{space 4}-.0374784{col 67}{space 3} .0525324
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0985872{col 26}{space 2} .0239689{col 37}{space 1}   -4.11{col 46}{space 3}0.000{col 54}{space 4} -.145572{col 67}{space 3}-.0516025
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0767908{col 26}{space 2} .0235639{col 37}{space 1}    3.26{col 46}{space 3}0.001{col 54}{space 4} .0306001{col 67}{space 3} .1229816
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0417649{col 26}{space 2} .0230924{col 37}{space 1}   -1.81{col 46}{space 3}0.071{col 54}{space 4}-.0870314{col 67}{space 3} .0035016
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0655004{col 26}{space 2} .0237044{col 37}{space 1}    2.76{col 46}{space 3}0.006{col 54}{space 4} .0190341{col 67}{space 3} .1119666
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0079467{col 26}{space 2} .0276999{col 37}{space 1}    0.29{col 46}{space 3}0.774{col 54}{space 4}-.0463515{col 67}{space 3}  .062245
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0217132{col 26}{space 2} .0279903{col 37}{space 1}    0.78{col 46}{space 3}0.438{col 54}{space 4}-.0331544{col 67}{space 3} .0765809
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0140582{col 26}{space 2} .0270782{col 37}{space 1}    0.52{col 46}{space 3}0.604{col 54}{space 4}-.0390214{col 67}{space 3} .0671378
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0565008{col 26}{space 2} .0283012{col 37}{space 1}    2.00{col 46}{space 3}0.046{col 54}{space 4} .0010238{col 67}{space 3} .1119778
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0115445{col 26}{space 2}  .027189{col 37}{space 1}    0.42{col 46}{space 3}0.671{col 54}{space 4}-.0417523{col 67}{space 3} .0648413
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0914851{col 26}{space 2} .0331533{col 37}{space 1}    2.76{col 46}{space 3}0.006{col 54}{space 4}  .026497{col 67}{space 3} .1564733
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0248657{col 26}{space 2} .0280449{col 37}{space 1}    0.89{col 46}{space 3}0.375{col 54}{space 4}-.0301088{col 67}{space 3} .0798402
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}    .0161{col 26}{space 2} .0272737{col 37}{space 1}    0.59{col 46}{space 3}0.555{col 54}{space 4}-.0373629{col 67}{space 3} .0695629
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0373835{col 26}{space 2} .0280156{col 37}{space 1}    1.33{col 46}{space 3}0.182{col 54}{space 4}-.0175336{col 67}{space 3} .0923006
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0717623{col 26}{space 2} .0268747{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4} -.124443{col 67}{space 3}-.0190816
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0710515{col 26}{space 2} .0278103{col 37}{space 1}   -2.55{col 46}{space 3}0.011{col 54}{space 4}-.1255662{col 67}{space 3}-.0165367
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0038262{col 26}{space 2} .0003794{col 37}{space 1}   10.09{col 46}{space 3}0.000{col 54}{space 4} .0030825{col 67}{space 3} .0045698
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0056438{col 26}{space 2} .0004141{col 37}{space 1}  -13.63{col 46}{space 3}0.000{col 54}{space 4}-.0064555{col 67}{space 3}-.0048321
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0683137{col 26}{space 2} .0022641{col 37}{space 1}  -30.17{col 46}{space 3}0.000{col 54}{space 4}-.0727519{col 67}{space 3}-.0638755
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0340956{col 26}{space 2} .0032629{col 37}{space 1}   10.45{col 46}{space 3}0.000{col 54}{space 4} .0276996{col 67}{space 3} .0404917
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1526453{col 26}{space 2} .0352619{col 37}{space 1}    4.33{col 46}{space 3}0.000{col 54}{space 4} .0835238{col 67}{space 3} .2217668
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.99
{txt}{col 13}Prob > F ={res}    0.0458

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01451371

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(High Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 3 - FDI from Low Corruption Counties

. 
. gen active50_lowcorr=0

. 
. replace active50_lowcorr=active_binary_50 if mean_cpi_50>median_cpi
{txt}(19,109 real changes made)

{com}. 
. gen inactive50_lowcorr=0

. 
. replace inactive50_lowcorr=inactive_50 if mean_cpi_50>median_cpi
{txt}(6,557 real changes made)

{com}. 
. gen active=active50_lowcorr

. 
. gen inactive=inactive50_lowcorr

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   126.01
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0932
                                                {txt}Root MSE          =    {res} .35857

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0032587{col 26}{space 2} .0049056{col 37}{space 1}   -0.66{col 46}{space 3}0.507{col 54}{space 4}-.0128748{col 67}{space 3} .0063574
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0017163{col 26}{space 2} .0072497{col 37}{space 1}    0.24{col 46}{space 3}0.813{col 54}{space 4}-.0124948{col 67}{space 3} .0159274
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0876543{col 26}{space 2} .0250115{col 37}{space 1}   -3.50{col 46}{space 3}0.000{col 54}{space 4}-.1366827{col 67}{space 3} -.038626
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0284668{col 26}{space 2} .0218172{col 37}{space 1}   -1.30{col 46}{space 3}0.192{col 54}{space 4}-.0712337{col 67}{space 3} .0143001
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1745444{col 26}{space 2} .0203255{col 37}{space 1}   -8.59{col 46}{space 3}0.000{col 54}{space 4}-.2143872{col 67}{space 3}-.1347016
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0448111{col 26}{space 2} .0213559{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0866737{col 67}{space 3}-.0029486
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2}  .093863{col 26}{space 2} .0268426{col 37}{space 1}    3.50{col 46}{space 3}0.000{col 54}{space 4} .0412452{col 67}{space 3} .1464807
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1601321{col 26}{space 2} .0210514{col 37}{space 1}   -7.61{col 46}{space 3}0.000{col 54}{space 4}-.2013977{col 67}{space 3}-.1188665
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0114155{col 26}{space 2} .0234216{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-.0344963{col 67}{space 3} .0573272
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1103044{col 26}{space 2} .0317713{col 37}{space 1}    3.47{col 46}{space 3}0.001{col 54}{space 4} .0480251{col 67}{space 3} .1725836
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0272073{col 26}{space 2} .0232785{col 37}{space 1}   -1.17{col 46}{space 3}0.243{col 54}{space 4}-.0728385{col 67}{space 3}  .018424
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0155651{col 26}{space 2}  .020988{col 37}{space 1}   -0.74{col 46}{space 3}0.458{col 54}{space 4}-.0567065{col 67}{space 3} .0255763
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0333112{col 26}{space 2} .0255038{col 37}{space 1}    1.31{col 46}{space 3}0.192{col 54}{space 4}-.0166821{col 67}{space 3} .0833046
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1759443{col 26}{space 2} .0222113{col 37}{space 1}    7.92{col 46}{space 3}0.000{col 54}{space 4} .1324049{col 67}{space 3} .2194837
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0788931{col 26}{space 2} .0222205{col 37}{space 1}   -3.55{col 46}{space 3}0.000{col 54}{space 4}-.1224505{col 67}{space 3}-.0353357
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1439808{col 26}{space 2} .0268473{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .0913538{col 67}{space 3} .1966079
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0631394{col 26}{space 2} .0216698{col 37}{space 1}   -2.91{col 46}{space 3}0.004{col 54}{space 4}-.1056174{col 67}{space 3}-.0206614
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1290707{col 26}{space 2} .0207468{col 37}{space 1}   -6.22{col 46}{space 3}0.000{col 54}{space 4}-.1697393{col 67}{space 3}-.0884021
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0436385{col 26}{space 2}  .020861{col 37}{space 1}   -2.09{col 46}{space 3}0.036{col 54}{space 4} -.084531{col 67}{space 3} -.002746
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}  -.13912{col 26}{space 2} .0207822{col 37}{space 1}   -6.69{col 46}{space 3}0.000{col 54}{space 4}-.1798579{col 67}{space 3}-.0983821
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2151178{col 26}{space 2} .0390193{col 37}{space 1}    5.51{col 46}{space 3}0.000{col 54}{space 4} .1386308{col 67}{space 3} .2916048
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}  .063891{col 26}{space 2} .0217639{col 37}{space 1}    2.94{col 46}{space 3}0.003{col 54}{space 4} .0212287{col 67}{space 3} .1065532
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1199049{col 26}{space 2} .0208316{col 37}{space 1}   -5.76{col 46}{space 3}0.000{col 54}{space 4}-.1607396{col 67}{space 3}-.0790701
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0581932{col 26}{space 2} .0223453{col 37}{space 1}   -2.60{col 46}{space 3}0.009{col 54}{space 4}-.1019953{col 67}{space 3}-.0143911
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0954438{col 26}{space 2} .0220827{col 37}{space 1}    4.32{col 46}{space 3}0.000{col 54}{space 4} .0521565{col 67}{space 3} .1387312
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0449095{col 26}{space 2} .0214493{col 37}{space 1}   -2.09{col 46}{space 3}0.036{col 54}{space 4}-.0869551{col 67}{space 3}-.0028639
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1931152{col 26}{space 2} .0277752{col 37}{space 1}    6.95{col 46}{space 3}0.000{col 54}{space 4} .1386694{col 67}{space 3}  .247561
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1271821{col 26}{space 2} .0210023{col 37}{space 1}   -6.06{col 46}{space 3}0.000{col 54}{space 4}-.1683517{col 67}{space 3}-.0860126
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0527829{col 26}{space 2} .0292377{col 37}{space 1}    1.81{col 46}{space 3}0.071{col 54}{space 4}-.0045299{col 67}{space 3} .1100957
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0669965{col 26}{space 2} .0223199{col 37}{space 1}   -3.00{col 46}{space 3}0.003{col 54}{space 4}-.1107487{col 67}{space 3}-.0232443
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0428881{col 26}{space 2} .0266174{col 37}{space 1}   -1.61{col 46}{space 3}0.107{col 54}{space 4}-.0950644{col 67}{space 3} .0092882
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} -.058643{col 26}{space 2} .0212586{col 37}{space 1}   -2.76{col 46}{space 3}0.006{col 54}{space 4}-.1003147{col 67}{space 3}-.0169712
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} -.003772{col 26}{space 2} .0219485{col 37}{space 1}   -0.17{col 46}{space 3}0.864{col 54}{space 4}-.0467962{col 67}{space 3} .0392523
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1111971{col 26}{space 2} .0232642{col 37}{space 1}   -4.78{col 46}{space 3}0.000{col 54}{space 4}-.1568004{col 67}{space 3}-.0655937
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0764844{col 26}{space 2} .0228635{col 37}{space 1}    3.35{col 46}{space 3}0.001{col 54}{space 4} .0316666{col 67}{space 3} .1213022
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0479028{col 26}{space 2} .0224246{col 37}{space 1}   -2.14{col 46}{space 3}0.033{col 54}{space 4}-.0918602{col 67}{space 3}-.0039454
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0615856{col 26}{space 2} .0228302{col 37}{space 1}    2.70{col 46}{space 3}0.007{col 54}{space 4} .0168331{col 67}{space 3} .1063381
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0035097{col 26}{space 2}  .027659{col 37}{space 1}    0.13{col 46}{space 3}0.899{col 54}{space 4}-.0507084{col 67}{space 3} .0577278
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}    .0192{col 26}{space 2} .0279609{col 37}{space 1}    0.69{col 46}{space 3}0.492{col 54}{space 4}-.0356099{col 67}{space 3}   .07401
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0099608{col 26}{space 2} .0269557{col 37}{space 1}    0.37{col 46}{space 3}0.712{col 54}{space 4}-.0428786{col 67}{space 3} .0628002
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0510313{col 26}{space 2} .0280898{col 37}{space 1}    1.82{col 46}{space 3}0.069{col 54}{space 4}-.0040312{col 67}{space 3} .1060938
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0062334{col 26}{space 2} .0270135{col 37}{space 1}    0.23{col 46}{space 3}0.818{col 54}{space 4}-.0467194{col 67}{space 3} .0591861
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0842397{col 26}{space 2} .0331509{col 37}{space 1}    2.54{col 46}{space 3}0.011{col 54}{space 4} .0192562{col 67}{space 3} .1492233
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0188822{col 26}{space 2} .0278106{col 37}{space 1}    0.68{col 46}{space 3}0.497{col 54}{space 4} -.035633{col 67}{space 3} .0733975
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0095474{col 26}{space 2}  .026998{col 37}{space 1}    0.35{col 46}{space 3}0.724{col 54}{space 4}-.0433749{col 67}{space 3} .0624697
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0315823{col 26}{space 2} .0277777{col 37}{space 1}    1.14{col 46}{space 3}0.256{col 54}{space 4}-.0228685{col 67}{space 3} .0860332
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0779784{col 26}{space 2}  .026628{col 37}{space 1}   -2.93{col 46}{space 3}0.003{col 54}{space 4}-.1301756{col 67}{space 3}-.0257813
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} -.076434{col 26}{space 2} .0275931{col 37}{space 1}   -2.77{col 46}{space 3}0.006{col 54}{space 4} -.130523{col 67}{space 3} -.022345
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037848{col 26}{space 2} .0003795{col 37}{space 1}    9.97{col 46}{space 3}0.000{col 54}{space 4} .0030408{col 67}{space 3} .0045287
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0056022{col 26}{space 2} .0004141{col 37}{space 1}  -13.53{col 46}{space 3}0.000{col 54}{space 4}-.0064139{col 67}{space 3}-.0047904
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0682621{col 26}{space 2} .0022632{col 37}{space 1}  -30.16{col 46}{space 3}0.000{col 54}{space 4}-.0726986{col 67}{space 3}-.0638257
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0371962{col 26}{space 2} .0033106{col 37}{space 1}   11.24{col 46}{space 3}0.000{col 54}{space 4} .0307066{col 67}{space 3} .0436858
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1729119{col 26}{space 2} .0345043{col 37}{space 1}    5.01{col 46}{space 3}0.000{col 54}{space 4} .1052753{col 67}{space 3} .2405485
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    0.38
{txt}{col 13}Prob > F ={res}    0.5379

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.00497499

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(Low Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 4 - FDI from High Proportion of ABC Signatory countries

. 
. gen active50_highwgb=0

. 
. replace active50_highwgb=active_binary_50 if mean_wgb_50>mean_wgb_source
{txt}(11,770 real changes made)

{com}. 
. gen inactive50_highwgb=0

. 
. replace inactive50_highwgb=inactive_50 if mean_wgb_50>mean_wgb_source
{txt}(4,449 real changes made)

{com}. 
. gen active=active50_highwgb

. 
. gen inactive=inactive50_highwgb

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   126.69
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0932
                                                {txt}Root MSE          =    {res} .35858

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0012185{col 26}{space 2} .0055693{col 37}{space 1}    0.22{col 46}{space 3}0.827{col 54}{space 4}-.0096985{col 67}{space 3} .0121356
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}-.0015926{col 26}{space 2} .0078081{col 37}{space 1}   -0.20{col 46}{space 3}0.838{col 54}{space 4}-.0168982{col 67}{space 3}  .013713
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0892304{col 26}{space 2} .0250229{col 37}{space 1}   -3.57{col 46}{space 3}0.000{col 54}{space 4}-.1382812{col 67}{space 3}-.0401795
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0288332{col 26}{space 2}  .021885{col 37}{space 1}   -1.32{col 46}{space 3}0.188{col 54}{space 4}-.0717329{col 67}{space 3} .0140665
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1753656{col 26}{space 2} .0203761{col 37}{space 1}   -8.61{col 46}{space 3}0.000{col 54}{space 4}-.2153074{col 67}{space 3}-.1354237
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0450339{col 26}{space 2} .0214432{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0870676{col 67}{space 3}-.0030003
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .0939525{col 26}{space 2}    .0268{col 37}{space 1}    3.51{col 46}{space 3}0.000{col 54}{space 4} .0414182{col 67}{space 3} .1464867
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1607652{col 26}{space 2}  .021184{col 37}{space 1}   -7.59{col 46}{space 3}0.000{col 54}{space 4}-.2022909{col 67}{space 3}-.1192396
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0105712{col 26}{space 2} .0234416{col 37}{space 1}    0.45{col 46}{space 3}0.652{col 54}{space 4}-.0353797{col 67}{space 3} .0565222
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1080102{col 26}{space 2} .0316658{col 37}{space 1}    3.41{col 46}{space 3}0.001{col 54}{space 4} .0459377{col 67}{space 3} .1700827
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0269798{col 26}{space 2} .0233322{col 37}{space 1}   -1.16{col 46}{space 3}0.248{col 54}{space 4}-.0727164{col 67}{space 3} .0187568
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0167998{col 26}{space 2} .0210195{col 37}{space 1}   -0.80{col 46}{space 3}0.424{col 54}{space 4} -.058003{col 67}{space 3} .0244033
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0334829{col 26}{space 2} .0255329{col 37}{space 1}    1.31{col 46}{space 3}0.190{col 54}{space 4}-.0165676{col 67}{space 3} .0835334
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1750319{col 26}{space 2}  .022102{col 37}{space 1}    7.92{col 46}{space 3}0.000{col 54}{space 4} .1317068{col 67}{space 3} .2183569
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0794622{col 26}{space 2} .0223392{col 37}{space 1}   -3.56{col 46}{space 3}0.000{col 54}{space 4}-.1232522{col 67}{space 3}-.0356721
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1438353{col 26}{space 2} .0269483{col 37}{space 1}    5.34{col 46}{space 3}0.000{col 54}{space 4} .0910104{col 67}{space 3} .1966603
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0638842{col 26}{space 2}  .021652{col 37}{space 1}   -2.95{col 46}{space 3}0.003{col 54}{space 4}-.1063271{col 67}{space 3}-.0214413
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1302645{col 26}{space 2} .0207865{col 37}{space 1}   -6.27{col 46}{space 3}0.000{col 54}{space 4}-.1710109{col 67}{space 3}-.0895181
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0445089{col 26}{space 2} .0209764{col 37}{space 1}   -2.12{col 46}{space 3}0.034{col 54}{space 4}-.0856277{col 67}{space 3}-.0033902
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1427859{col 26}{space 2} .0203937{col 37}{space 1}   -7.00{col 46}{space 3}0.000{col 54}{space 4}-.1827622{col 67}{space 3}-.1028095
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2134325{col 26}{space 2} .0388735{col 37}{space 1}    5.49{col 46}{space 3}0.000{col 54}{space 4} .1372312{col 67}{space 3} .2896337
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}  .063013{col 26}{space 2} .0218078{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0202646{col 67}{space 3} .1057614
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1203148{col 26}{space 2} .0209202{col 37}{space 1}   -5.75{col 46}{space 3}0.000{col 54}{space 4}-.1613233{col 67}{space 3}-.0793063
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} -.057999{col 26}{space 2} .0223868{col 37}{space 1}   -2.59{col 46}{space 3}0.010{col 54}{space 4}-.1018823{col 67}{space 3}-.0141157
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0945381{col 26}{space 2} .0220176{col 37}{space 1}    4.29{col 46}{space 3}0.000{col 54}{space 4} .0513784{col 67}{space 3} .1376978
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0460815{col 26}{space 2} .0213632{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4}-.0879584{col 67}{space 3}-.0042046
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1922768{col 26}{space 2} .0278455{col 37}{space 1}    6.91{col 46}{space 3}0.000{col 54}{space 4} .1376932{col 67}{space 3} .2468604
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} -.128762{col 26}{space 2} .0209403{col 37}{space 1}   -6.15{col 46}{space 3}0.000{col 54}{space 4}-.1698099{col 67}{space 3}-.0877141
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0530816{col 26}{space 2} .0292565{col 37}{space 1}    1.81{col 46}{space 3}0.070{col 54}{space 4}-.0042679{col 67}{space 3} .1104311
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0673903{col 26}{space 2}  .022328{col 37}{space 1}   -3.02{col 46}{space 3}0.003{col 54}{space 4}-.1111585{col 67}{space 3}-.0236222
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0423728{col 26}{space 2} .0266388{col 37}{space 1}   -1.59{col 46}{space 3}0.112{col 54}{space 4} -.094591{col 67}{space 3} .0098455
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0592611{col 26}{space 2} .0213012{col 37}{space 1}   -2.78{col 46}{space 3}0.005{col 54}{space 4}-.1010164{col 67}{space 3}-.0175057
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0042954{col 26}{space 2} .0220035{col 37}{space 1}   -0.20{col 46}{space 3}0.845{col 54}{space 4}-.0474273{col 67}{space 3} .0388366
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1141185{col 26}{space 2} .0230678{col 37}{space 1}   -4.95{col 46}{space 3}0.000{col 54}{space 4}-.1593368{col 67}{space 3}-.0689002
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0755269{col 26}{space 2} .0228962{col 37}{space 1}    3.30{col 46}{space 3}0.001{col 54}{space 4}  .030645{col 67}{space 3} .1204088
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0483737{col 26}{space 2} .0224463{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4}-.0923737{col 67}{space 3}-.0043736
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}   .06129{col 26}{space 2} .0228444{col 37}{space 1}    2.68{col 46}{space 3}0.007{col 54}{space 4} .0165097{col 67}{space 3} .1060704
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0051797{col 26}{space 2} .0276147{col 37}{space 1}    0.19{col 46}{space 3}0.851{col 54}{space 4}-.0489517{col 67}{space 3}  .059311
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}  .020291{col 26}{space 2} .0279513{col 37}{space 1}    0.73{col 46}{space 3}0.468{col 54}{space 4}   -.0345{col 67}{space 3} .0750821
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0103745{col 26}{space 2} .0269416{col 37}{space 1}    0.39{col 46}{space 3}0.700{col 54}{space 4}-.0424374{col 67}{space 3} .0631863
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0509479{col 26}{space 2} .0280854{col 37}{space 1}    1.81{col 46}{space 3}0.070{col 54}{space 4}-.0041061{col 67}{space 3} .1060018
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0063272{col 26}{space 2} .0270041{col 37}{space 1}    0.23{col 46}{space 3}0.815{col 54}{space 4}-.0466071{col 67}{space 3} .0592615
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0840014{col 26}{space 2} .0330993{col 37}{space 1}    2.54{col 46}{space 3}0.011{col 54}{space 4} .0191191{col 67}{space 3} .1488837
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0185983{col 26}{space 2} .0277916{col 37}{space 1}    0.67{col 46}{space 3}0.503{col 54}{space 4}-.0358798{col 67}{space 3} .0730764
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0094867{col 26}{space 2} .0269908{col 37}{space 1}    0.35{col 46}{space 3}0.725{col 54}{space 4}-.0434215{col 67}{space 3}  .062395
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0310319{col 26}{space 2} .0277672{col 37}{space 1}    1.12{col 46}{space 3}0.264{col 54}{space 4}-.0233984{col 67}{space 3} .0854622
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} -.078236{col 26}{space 2} .0266209{col 37}{space 1}   -2.94{col 46}{space 3}0.003{col 54}{space 4}-.1304192{col 67}{space 3}-.0260527
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0771533{col 26}{space 2} .0275709{col 37}{space 1}   -2.80{col 46}{space 3}0.005{col 54}{space 4}-.1311987{col 67}{space 3} -.023108
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037819{col 26}{space 2} .0003792{col 37}{space 1}    9.97{col 46}{space 3}0.000{col 54}{space 4} .0030386{col 67}{space 3} .0045251
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0055995{col 26}{space 2} .0004138{col 37}{space 1}  -13.53{col 46}{space 3}0.000{col 54}{space 4}-.0064106{col 67}{space 3}-.0047884
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0682669{col 26}{space 2} .0022634{col 37}{space 1}  -30.16{col 46}{space 3}0.000{col 54}{space 4}-.0727037{col 67}{space 3}-.0638301
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0367704{col 26}{space 2} .0032328{col 37}{space 1}   11.37{col 46}{space 3}0.000{col 54}{space 4} .0304333{col 67}{space 3} .0431074
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1734561{col 26}{space 2} .0345077{col 37}{space 1}    5.03{col 46}{space 3}0.000{col 54}{space 4} .1058128{col 67}{space 3} .2410993
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    0.09
{txt}{col 13}Prob > F ={res}    0.7605

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.00281115

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(High ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 5 - FDI from Low Proportion of ABC Signatory countries

. 
. gen active50_lowwgb=0

. 
. replace active50_lowwgb=active_binary_50 if mean_wgb_50<=mean_wgb_source
{txt}(22,972 real changes made)

{com}. 
. gen inactive50_lowwgb=0

. 
. replace inactive50_lowwgb=inactive_50 if mean_wgb_50<=mean_wgb_source
{txt}(12,583 real changes made)

{com}. 
. gen active=active50_lowwgb

. 
. gen inactive=inactive50_lowwgb

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   124.79
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0936
                                                {txt}Root MSE          =    {res} .35849

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0070886{col 26}{space 2} .0039121{col 37}{space 1}    1.81{col 46}{space 3}0.070{col 54}{space 4}  -.00058{col 67}{space 3} .0147572
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0253558{col 26}{space 2} .0054883{col 37}{space 1}    4.62{col 46}{space 3}0.000{col 54}{space 4} .0145975{col 67}{space 3}  .036114
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0872829{col 26}{space 2} .0248816{col 37}{space 1}   -3.51{col 46}{space 3}0.000{col 54}{space 4}-.1360568{col 67}{space 3} -.038509
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} -.028207{col 26}{space 2} .0216588{col 37}{space 1}   -1.30{col 46}{space 3}0.193{col 54}{space 4}-.0706634{col 67}{space 3} .0142494
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1722424{col 26}{space 2} .0202372{col 37}{space 1}   -8.51{col 46}{space 3}0.000{col 54}{space 4}-.2119119{col 67}{space 3}-.1325728
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0437624{col 26}{space 2} .0212821{col 37}{space 1}   -2.06{col 46}{space 3}0.040{col 54}{space 4}-.0854804{col 67}{space 3}-.0020444
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .0952123{col 26}{space 2}  .026576{col 37}{space 1}    3.58{col 46}{space 3}0.000{col 54}{space 4}  .043117{col 67}{space 3} .1473076
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1631137{col 26}{space 2} .0208494{col 37}{space 1}   -7.82{col 46}{space 3}0.000{col 54}{space 4}-.2039835{col 67}{space 3} -.122244
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0111982{col 26}{space 2} .0233487{col 37}{space 1}    0.48{col 46}{space 3}0.632{col 54}{space 4}-.0345707{col 67}{space 3} .0569672
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1087302{col 26}{space 2}  .031495{col 37}{space 1}    3.45{col 46}{space 3}0.001{col 54}{space 4} .0469927{col 67}{space 3} .1704678
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0264582{col 26}{space 2} .0230451{col 37}{space 1}   -1.15{col 46}{space 3}0.251{col 54}{space 4}-.0716319{col 67}{space 3} .0187155
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0154163{col 26}{space 2} .0208126{col 37}{space 1}   -0.74{col 46}{space 3}0.459{col 54}{space 4} -.056214{col 67}{space 3} .0253813
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0355547{col 26}{space 2} .0254076{col 37}{space 1}    1.40{col 46}{space 3}0.162{col 54}{space 4}-.0142502{col 67}{space 3} .0853597
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1742175{col 26}{space 2} .0219531{col 37}{space 1}    7.94{col 46}{space 3}0.000{col 54}{space 4} .1311843{col 67}{space 3} .2172507
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0733877{col 26}{space 2} .0221271{col 37}{space 1}   -3.32{col 46}{space 3}0.001{col 54}{space 4}-.1167621{col 67}{space 3}-.0300134
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1384646{col 26}{space 2} .0262892{col 37}{space 1}    5.27{col 46}{space 3}0.000{col 54}{space 4} .0869317{col 67}{space 3} .1899975
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0637813{col 26}{space 2} .0215386{col 37}{space 1}   -2.96{col 46}{space 3}0.003{col 54}{space 4} -.106002{col 67}{space 3}-.0215607
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1335321{col 26}{space 2} .0206228{col 37}{space 1}   -6.47{col 46}{space 3}0.000{col 54}{space 4}-.1739577{col 67}{space 3}-.0931066
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0419025{col 26}{space 2} .0207242{col 37}{space 1}   -2.02{col 46}{space 3}0.043{col 54}{space 4}-.0825267{col 67}{space 3}-.0012783
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1419802{col 26}{space 2} .0201939{col 37}{space 1}   -7.03{col 46}{space 3}0.000{col 54}{space 4} -.181565{col 67}{space 3}-.1023955
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2128223{col 26}{space 2} .0389551{col 37}{space 1}    5.46{col 46}{space 3}0.000{col 54}{space 4} .1364613{col 67}{space 3} .2891834
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0629246{col 26}{space 2} .0216108{col 37}{space 1}    2.91{col 46}{space 3}0.004{col 54}{space 4} .0205624{col 67}{space 3} .1052868
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1207563{col 26}{space 2} .0207784{col 37}{space 1}   -5.81{col 46}{space 3}0.000{col 54}{space 4}-.1614868{col 67}{space 3}-.0800258
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0565446{col 26}{space 2} .0222206{col 37}{space 1}   -2.54{col 46}{space 3}0.011{col 54}{space 4}-.1001022{col 67}{space 3} -.012987
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0967438{col 26}{space 2} .0219053{col 37}{space 1}    4.42{col 46}{space 3}0.000{col 54}{space 4} .0538043{col 67}{space 3} .1396833
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0443571{col 26}{space 2} .0212158{col 37}{space 1}   -2.09{col 46}{space 3}0.037{col 54}{space 4}-.0859449{col 67}{space 3}-.0027692
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}  .194557{col 26}{space 2} .0277371{col 37}{space 1}    7.01{col 46}{space 3}0.000{col 54}{space 4} .1401858{col 67}{space 3} .2489282
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1270227{col 26}{space 2} .0207528{col 37}{space 1}   -6.12{col 46}{space 3}0.000{col 54}{space 4} -.167703{col 67}{space 3}-.0863424
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0551258{col 26}{space 2} .0289905{col 37}{space 1}    1.90{col 46}{space 3}0.057{col 54}{space 4}-.0017023{col 67}{space 3}  .111954
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0662264{col 26}{space 2} .0222039{col 37}{space 1}   -2.98{col 46}{space 3}0.003{col 54}{space 4}-.1097512{col 67}{space 3}-.0227016
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0380488{col 26}{space 2} .0265451{col 37}{space 1}   -1.43{col 46}{space 3}0.152{col 54}{space 4}-.0900835{col 67}{space 3} .0139858
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0586328{col 26}{space 2} .0211402{col 37}{space 1}   -2.77{col 46}{space 3}0.006{col 54}{space 4}-.1000725{col 67}{space 3}-.0171932
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0041055{col 26}{space 2} .0219204{col 37}{space 1}   -0.19{col 46}{space 3}0.851{col 54}{space 4}-.0470746{col 67}{space 3} .0388636
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} -.112652{col 26}{space 2} .0228582{col 37}{space 1}   -4.93{col 46}{space 3}0.000{col 54}{space 4}-.1574594{col 67}{space 3}-.0678446
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}  .074307{col 26}{space 2} .0227735{col 37}{space 1}    3.26{col 46}{space 3}0.001{col 54}{space 4} .0296657{col 67}{space 3} .1189484
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0463121{col 26}{space 2} .0223736{col 37}{space 1}   -2.07{col 46}{space 3}0.038{col 54}{space 4}-.0901695{col 67}{space 3}-.0024546
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0599854{col 26}{space 2} .0227976{col 37}{space 1}    2.63{col 46}{space 3}0.009{col 54}{space 4} .0152968{col 67}{space 3}  .104674
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0074332{col 26}{space 2} .0275721{col 37}{space 1}    0.27{col 46}{space 3}0.787{col 54}{space 4}-.0466145{col 67}{space 3}  .061481
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}   .02223{col 26}{space 2} .0278813{col 37}{space 1}    0.80{col 46}{space 3}0.425{col 54}{space 4}-.0324238{col 67}{space 3} .0768838
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0156547{col 26}{space 2} .0269193{col 37}{space 1}    0.58{col 46}{space 3}0.561{col 54}{space 4}-.0371135{col 67}{space 3} .0684228
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0585337{col 26}{space 2} .0281255{col 37}{space 1}    2.08{col 46}{space 3}0.037{col 54}{space 4} .0034012{col 67}{space 3} .1136663
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0129297{col 26}{space 2} .0270353{col 37}{space 1}    0.48{col 46}{space 3}0.632{col 54}{space 4}-.0400659{col 67}{space 3} .0659253
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0929634{col 26}{space 2} .0333138{col 37}{space 1}    2.79{col 46}{space 3}0.005{col 54}{space 4} .0276605{col 67}{space 3} .1582663
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0271766{col 26}{space 2} .0278888{col 37}{space 1}    0.97{col 46}{space 3}0.330{col 54}{space 4}-.0274921{col 67}{space 3} .0818452
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}  .017682{col 26}{space 2} .0270542{col 37}{space 1}    0.65{col 46}{space 3}0.513{col 54}{space 4}-.0353505{col 67}{space 3} .0707145
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0396403{col 26}{space 2}   .02787{col 37}{space 1}    1.42{col 46}{space 3}0.155{col 54}{space 4}-.0149915{col 67}{space 3} .0942721
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0693916{col 26}{space 2} .0266703{col 37}{space 1}   -2.60{col 46}{space 3}0.009{col 54}{space 4}-.1216716{col 67}{space 3}-.0171116
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0684257{col 26}{space 2} .0276792{col 37}{space 1}   -2.47{col 46}{space 3}0.013{col 54}{space 4}-.1226834{col 67}{space 3}-.0141679
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037838{col 26}{space 2} .0003794{col 37}{space 1}    9.97{col 46}{space 3}0.000{col 54}{space 4} .0030401{col 67}{space 3} .0045275
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0055996{col 26}{space 2} .0004141{col 37}{space 1}  -13.52{col 46}{space 3}0.000{col 54}{space 4}-.0064112{col 67}{space 3}-.0047879
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0682877{col 26}{space 2} .0022641{col 37}{space 1}  -30.16{col 46}{space 3}0.000{col 54}{space 4} -.072726{col 67}{space 3}-.0638494
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0341883{col 26}{space 2} .0033386{col 37}{space 1}   10.24{col 46}{space 3}0.000{col 54}{space 4}  .027644{col 67}{space 3} .0407327
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1620138{col 26}{space 2}  .034489{col 37}{space 1}    4.70{col 46}{space 3}0.000{col 54}{space 4} .0944072{col 67}{space 3} .2296204
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    8.30
{txt}{col 13}Prob > F ={res}    0.0040

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01826715

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(Low ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 6 - Often Without Cash

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. reg often_without_cash active inactive cd* yd* age age2 working female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd5 omitted because of collinearity

Linear regression                               Number of obs     = {res}    87,383
                                                {txt}F(50, 8002)       =  {res}   393.60
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2233
                                                {txt}Root MSE          =    {res} .42869

{txt}{ralign 78:(Std. Err. adjusted for {res:8,003} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0245421{col 26}{space 2} .0063325{col 37}{space 1}   -3.88{col 46}{space 3}0.000{col 54}{space 4}-.0369556{col 67}{space 3}-.0121287
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}  .012026{col 26}{space 2} .0071813{col 37}{space 1}    1.67{col 46}{space 3}0.094{col 54}{space 4}-.0020513{col 67}{space 3} .0261033
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.2158362{col 26}{space 2}  .031066{col 37}{space 1}   -6.95{col 46}{space 3}0.000{col 54}{space 4}-.2767336{col 67}{space 3}-.1549389
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .4805092{col 26}{space 2} .0309471{col 37}{space 1}   15.53{col 46}{space 3}0.000{col 54}{space 4} .4198448{col 67}{space 3} .5411736
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} .2059558{col 26}{space 2} .0365571{col 37}{space 1}    5.63{col 46}{space 3}0.000{col 54}{space 4} .1342943{col 67}{space 3} .2776173
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} .5043814{col 26}{space 2} .0302248{col 37}{space 1}   16.69{col 46}{space 3}0.000{col 54}{space 4}  .445133{col 67}{space 3} .5636298
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} .5246714{col 26}{space 2} .0322699{col 37}{space 1}   16.26{col 46}{space 3}0.000{col 54}{space 4}  .461414{col 67}{space 3} .5879288
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .4409146{col 26}{space 2} .0341971{col 37}{space 1}   12.89{col 46}{space 3}0.000{col 54}{space 4} .3738794{col 67}{space 3} .5079498
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .0545461{col 26}{space 2} .0349101{col 37}{space 1}    1.56{col 46}{space 3}0.118{col 54}{space 4}-.0138867{col 67}{space 3} .1229789
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .4795187{col 26}{space 2} .0309564{col 37}{space 1}   15.49{col 46}{space 3}0.000{col 54}{space 4}  .418836{col 67}{space 3} .5402014
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1079486{col 26}{space 2} .0354278{col 37}{space 1}   -3.05{col 46}{space 3}0.002{col 54}{space 4}-.1773964{col 67}{space 3}-.0385009
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .6040962{col 26}{space 2} .0329513{col 37}{space 1}   18.33{col 46}{space 3}0.000{col 54}{space 4} .5395032{col 67}{space 3} .6686892
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1213885{col 26}{space 2} .0315455{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4}  .059551{col 67}{space 3}  .183226
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}  .518746{col 26}{space 2} .0305835{col 37}{space 1}   16.96{col 46}{space 3}0.000{col 54}{space 4} .4587943{col 67}{space 3} .5786976
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .3320328{col 26}{space 2} .0317704{col 37}{space 1}   10.45{col 46}{space 3}0.000{col 54}{space 4} .2697544{col 67}{space 3} .3943111
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .3976635{col 26}{space 2} .0327074{col 37}{space 1}   12.16{col 46}{space 3}0.000{col 54}{space 4} .3335485{col 67}{space 3} .4617785
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1943039{col 26}{space 2} .0361068{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .1235251{col 67}{space 3} .2650827
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .4371728{col 26}{space 2}  .030678{col 37}{space 1}   14.25{col 46}{space 3}0.000{col 54}{space 4} .3770359{col 67}{space 3} .4973097
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .4055455{col 26}{space 2} .0322689{col 37}{space 1}   12.57{col 46}{space 3}0.000{col 54}{space 4} .3422901{col 67}{space 3} .4688009
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .4100493{col 26}{space 2} .0311458{col 37}{space 1}   13.17{col 46}{space 3}0.000{col 54}{space 4} .3489955{col 67}{space 3} .4711032
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.2400861{col 26}{space 2} .0313327{col 37}{space 1}   -7.66{col 46}{space 3}0.000{col 54}{space 4}-.3015063{col 67}{space 3}-.1786658
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2} .2911488{col 26}{space 2} .0314855{col 37}{space 1}    9.25{col 46}{space 3}0.000{col 54}{space 4} .2294291{col 67}{space 3} .3528685
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .2341825{col 26}{space 2} .0323168{col 37}{space 1}    7.25{col 46}{space 3}0.000{col 54}{space 4} .1708331{col 67}{space 3} .2975318
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .4774785{col 26}{space 2} .0299948{col 37}{space 1}   15.92{col 46}{space 3}0.000{col 54}{space 4}  .418681{col 67}{space 3} .5362761
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1752218{col 26}{space 2} .0316053{col 37}{space 1}    5.54{col 46}{space 3}0.000{col 54}{space 4} .1132673{col 67}{space 3} .2371763
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .5058729{col 26}{space 2} .0302068{col 37}{space 1}   16.75{col 46}{space 3}0.000{col 54}{space 4} .4466598{col 67}{space 3}  .565086
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .3018771{col 26}{space 2} .0353721{col 37}{space 1}    8.53{col 46}{space 3}0.000{col 54}{space 4} .2325385{col 67}{space 3} .3712157
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} .0149237{col 26}{space 2} .0304017{col 37}{space 1}    0.49{col 46}{space 3}0.624{col 54}{space 4}-.0446715{col 67}{space 3} .0745189
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0927528{col 26}{space 2} .0476361{col 37}{space 1}    1.95{col 46}{space 3}0.052{col 54}{space 4}-.0006264{col 67}{space 3} .1861319
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}  .193605{col 26}{space 2} .0381688{col 37}{space 1}    5.07{col 46}{space 3}0.000{col 54}{space 4} .1187842{col 67}{space 3} .2684258
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .2590263{col 26}{space 2} .0404838{col 37}{space 1}    6.40{col 46}{space 3}0.000{col 54}{space 4} .1796674{col 67}{space 3} .3383852
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .3244342{col 26}{space 2} .0323928{col 37}{space 1}   10.02{col 46}{space 3}0.000{col 54}{space 4} .2609357{col 67}{space 3} .3879326
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .5705627{col 26}{space 2}  .030978{col 37}{space 1}   18.42{col 46}{space 3}0.000{col 54}{space 4} .5098377{col 67}{space 3} .6312877
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0529595{col 26}{space 2} .0337108{col 37}{space 1}   -1.57{col 46}{space 3}0.116{col 54}{space 4}-.1190414{col 67}{space 3} .0131225
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .3716699{col 26}{space 2} .0321576{col 37}{space 1}   11.56{col 46}{space 3}0.000{col 54}{space 4} .3086326{col 67}{space 3} .4347072
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} .3112701{col 26}{space 2} .0338579{col 37}{space 1}    9.19{col 46}{space 3}0.000{col 54}{space 4} .2448999{col 67}{space 3} .3776404
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .3813281{col 26}{space 2} .0332365{col 37}{space 1}   11.47{col 46}{space 3}0.000{col 54}{space 4} .3161759{col 67}{space 3} .4464802
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0068889{col 26}{space 2}  .014388{col 37}{space 1}   -0.48{col 46}{space 3}0.632{col 54}{space 4}-.0350931{col 67}{space 3} .0213153
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2} .0009379{col 26}{space 2} .0129734{col 37}{space 1}    0.07{col 46}{space 3}0.942{col 54}{space 4}-.0244935{col 67}{space 3} .0263692
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1053334{col 26}{space 2} .0247943{col 37}{space 1}    4.25{col 46}{space 3}0.000{col 54}{space 4} .0567301{col 67}{space 3} .1539367
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0135874{col 26}{space 2} .0146653{col 37}{space 1}    0.93{col 46}{space 3}0.354{col 54}{space 4}-.0151604{col 67}{space 3} .0423353
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0216763{col 26}{space 2} .0136267{col 37}{space 1}    1.59{col 46}{space 3}0.112{col 54}{space 4}-.0050356{col 67}{space 3} .0483881
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0427279{col 26}{space 2} .0152163{col 37}{space 1}    2.81{col 46}{space 3}0.005{col 54}{space 4} .0128999{col 67}{space 3} .0725558
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0217971{col 26}{space 2} .0138565{col 37}{space 1}   -1.57{col 46}{space 3}0.116{col 54}{space 4}-.0489594{col 67}{space 3} .0053652
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} .0023836{col 26}{space 2} .0138883{col 37}{space 1}    0.17{col 46}{space 3}0.864{col 54}{space 4} -.024841{col 67}{space 3} .0296083
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0059893{col 26}{space 2} .0005537{col 37}{space 1}   10.82{col 46}{space 3}0.000{col 54}{space 4} .0049038{col 67}{space 3} .0070748
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0058805{col 26}{space 2} .0006115{col 37}{space 1}   -9.62{col 46}{space 3}0.000{col 54}{space 4}-.0070793{col 67}{space 3}-.0046817
{txt}{space 5}working {c |}{col 14}{res}{space 2}-.0817854{col 26}{space 2}  .003856{col 37}{space 1}  -21.21{col 46}{space 3}0.000{col 54}{space 4}-.0893441{col 67}{space 3}-.0742268
{txt}{space 6}female {c |}{col 14}{res}{space 2} .0042876{col 26}{space 2}  .002657{col 37}{space 1}    1.61{col 46}{space 3}0.107{col 54}{space 4}-.0009208{col 67}{space 3}  .009496
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.0983468{col 26}{space 2} .0049895{col 37}{space 1}  -19.71{col 46}{space 3}0.000{col 54}{space 4}-.1081276{col 67}{space 3}-.0885661
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2953382{col 26}{space 2} .0336214{col 37}{space 1}    8.78{col 46}{space 3}0.000{col 54}{space 4} .2294315{col 67}{space 3} .3612448
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8002) ={res}   20.75
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.03656813

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(DV Without Cash) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. 
. 
. *Model 7 - Working

. 
. reg working active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,239
                                                {txt}F(52, 8775)       =  {res}   236.72
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1394
                                                {txt}Root MSE          =    {res} .44884

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0460535{col 26}{space 2} .0057558{col 37}{space 1}    8.00{col 46}{space 3}0.000{col 54}{space 4} .0347708{col 67}{space 3} .0573363
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0042301{col 26}{space 2} .0072601{col 37}{space 1}    0.58{col 46}{space 3}0.560{col 54}{space 4}-.0100015{col 67}{space 3} .0184616
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0705088{col 26}{space 2}   .02956{col 37}{space 1}   -2.39{col 46}{space 3}0.017{col 54}{space 4}-.1284532{col 67}{space 3}-.0125643
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.1048086{col 26}{space 2} .0321033{col 37}{space 1}   -3.26{col 46}{space 3}0.001{col 54}{space 4}-.1677386{col 67}{space 3}-.0418785
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} -.131252{col 26}{space 2} .0334431{col 37}{space 1}   -3.92{col 46}{space 3}0.000{col 54}{space 4}-.1968083{col 67}{space 3}-.0656956
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2663039{col 26}{space 2} .0298478{col 37}{space 1}   -8.92{col 46}{space 3}0.000{col 54}{space 4}-.3248126{col 67}{space 3}-.2077951
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2775236{col 26}{space 2} .0362039{col 37}{space 1}   -7.67{col 46}{space 3}0.000{col 54}{space 4}-.3484918{col 67}{space 3}-.2065554
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.0967661{col 26}{space 2} .0312851{col 37}{space 1}   -3.09{col 46}{space 3}0.002{col 54}{space 4}-.1580922{col 67}{space 3}  -.03544
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.0461333{col 26}{space 2} .0307102{col 37}{space 1}   -1.50{col 46}{space 3}0.133{col 54}{space 4}-.1063324{col 67}{space 3} .0140658
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}  -.21532{col 26}{space 2}  .031151{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.2763833{col 67}{space 3}-.1542567
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0021367{col 26}{space 2}  .030677{col 37}{space 1}    0.07{col 46}{space 3}0.944{col 54}{space 4}-.0579975{col 67}{space 3} .0622708
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.1886465{col 26}{space 2} .0335026{col 37}{space 1}   -5.63{col 46}{space 3}0.000{col 54}{space 4}-.2543193{col 67}{space 3}-.1229736
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1150538{col 26}{space 2} .0299883{col 37}{space 1}    3.84{col 46}{space 3}0.000{col 54}{space 4} .0562697{col 67}{space 3}  .173838
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.2823747{col 26}{space 2} .0298043{col 37}{space 1}   -9.47{col 46}{space 3}0.000{col 54}{space 4} -.340798{col 67}{space 3}-.2239513
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .0403235{col 26}{space 2} .0306567{col 37}{space 1}    1.32{col 46}{space 3}0.188{col 54}{space 4}-.0197709{col 67}{space 3} .1004179
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2214631{col 26}{space 2} .0311561{col 37}{space 1}   -7.11{col 46}{space 3}0.000{col 54}{space 4}-.2825363{col 67}{space 3}-.1603899
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.1848826{col 26}{space 2} .0316886{col 37}{space 1}   -5.83{col 46}{space 3}0.000{col 54}{space 4}-.2469996{col 67}{space 3}-.1227655
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .0667416{col 26}{space 2} .0324986{col 37}{space 1}    2.05{col 46}{space 3}0.040{col 54}{space 4} .0030368{col 67}{space 3} .1304464
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.0971395{col 26}{space 2} .0327156{col 37}{space 1}   -2.97{col 46}{space 3}0.003{col 54}{space 4}-.1612698{col 67}{space 3}-.0330092
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.2657344{col 26}{space 2} .0296069{col 37}{space 1}   -8.98{col 46}{space 3}0.000{col 54}{space 4}-.3237708{col 67}{space 3} -.207698
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} .1712487{col 26}{space 2} .0315917{col 37}{space 1}    5.42{col 46}{space 3}0.000{col 54}{space 4} .1093216{col 67}{space 3} .2331759
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1461723{col 26}{space 2} .0295734{col 37}{space 1}   -4.94{col 46}{space 3}0.000{col 54}{space 4}-.2041431{col 67}{space 3}-.0882014
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .0035166{col 26}{space 2} .0308909{col 37}{space 1}    0.11{col 46}{space 3}0.909{col 54}{space 4}-.0570368{col 67}{space 3} .0640699
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.2526732{col 26}{space 2} .0291125{col 37}{space 1}   -8.68{col 46}{space 3}0.000{col 54}{space 4}-.3097406{col 67}{space 3}-.1956058
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0490959{col 26}{space 2} .0302943{col 37}{space 1}    1.62{col 46}{space 3}0.105{col 54}{space 4} -.010288{col 67}{space 3} .1084799
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.1709242{col 26}{space 2} .0291543{col 37}{space 1}   -5.86{col 46}{space 3}0.000{col 54}{space 4}-.2280735{col 67}{space 3}-.1137749
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.1492708{col 26}{space 2} .0346811{col 37}{space 1}   -4.30{col 46}{space 3}0.000{col 54}{space 4}-.2172538{col 67}{space 3}-.0812878
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.0005484{col 26}{space 2} .0294032{col 37}{space 1}   -0.02{col 46}{space 3}0.985{col 54}{space 4}-.0581856{col 67}{space 3} .0570889
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0083595{col 26}{space 2}  .032713{col 37}{space 1}   -0.26{col 46}{space 3}0.798{col 54}{space 4}-.0724846{col 67}{space 3} .0557656
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0963396{col 26}{space 2} .0357492{col 37}{space 1}   -2.69{col 46}{space 3}0.007{col 54}{space 4}-.1664164{col 67}{space 3}-.0262629
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .0178838{col 26}{space 2} .0356078{col 37}{space 1}    0.50{col 46}{space 3}0.616{col 54}{space 4}-.0519158{col 67}{space 3} .0876834
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .0445513{col 26}{space 2} .0329335{col 37}{space 1}    1.35{col 46}{space 3}0.176{col 54}{space 4} -.020006{col 67}{space 3} .1091086
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2074532{col 26}{space 2} .0334072{col 37}{space 1}   -6.21{col 46}{space 3}0.000{col 54}{space 4}-.2729391{col 67}{space 3}-.1419673
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0800809{col 26}{space 2} .0316975{col 37}{space 1}   -2.53{col 46}{space 3}0.012{col 54}{space 4}-.1422155{col 67}{space 3}-.0179463
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0617422{col 26}{space 2} .0319536{col 37}{space 1}    1.93{col 46}{space 3}0.053{col 54}{space 4}-.0008943{col 67}{space 3} .1243788
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1401868{col 26}{space 2} .0324527{col 37}{space 1}   -4.32{col 46}{space 3}0.000{col 54}{space 4}-.2038016{col 67}{space 3} -.076572
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}  -.12848{col 26}{space 2}  .031391{col 37}{space 1}   -4.09{col 46}{space 3}0.000{col 54}{space 4}-.1900137{col 67}{space 3}-.0669462
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}-.1288807{col 26}{space 2} .0330911{col 37}{space 1}   -3.89{col 46}{space 3}0.000{col 54}{space 4} -.193747{col 67}{space 3}-.0640144
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}-.1401422{col 26}{space 2} .0341085{col 37}{space 1}   -4.11{col 46}{space 3}0.000{col 54}{space 4}-.2070029{col 67}{space 3}-.0732815
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.1279411{col 26}{space 2} .0322836{col 37}{space 1}   -3.96{col 46}{space 3}0.000{col 54}{space 4}-.1912245{col 67}{space 3}-.0646578
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} -.177558{col 26}{space 2} .0343716{col 37}{space 1}   -5.17{col 46}{space 3}0.000{col 54}{space 4}-.2449344{col 67}{space 3}-.1101815
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.1424783{col 26}{space 2} .0324269{col 37}{space 1}   -4.39{col 46}{space 3}0.000{col 54}{space 4}-.2060426{col 67}{space 3}-.0789141
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}-.1896384{col 26}{space 2} .0350511{col 37}{space 1}   -5.41{col 46}{space 3}0.000{col 54}{space 4}-.2583468{col 67}{space 3}  -.12093
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}-.2121964{col 26}{space 2} .0335437{col 37}{space 1}   -6.33{col 46}{space 3}0.000{col 54}{space 4}-.2779499{col 67}{space 3}-.1464428
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.1413507{col 26}{space 2} .0323375{col 37}{space 1}   -4.37{col 46}{space 3}0.000{col 54}{space 4}-.2047397{col 67}{space 3}-.0779618
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.1766506{col 26}{space 2} .0334932{col 37}{space 1}   -5.27{col 46}{space 3}0.000{col 54}{space 4} -.242305{col 67}{space 3}-.1109961
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0861821{col 26}{space 2} .0320565{col 37}{space 1}   -2.69{col 46}{space 3}0.007{col 54}{space 4}-.1490203{col 67}{space 3} -.023344
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1138484{col 26}{space 2} .0332099{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.1789476{col 67}{space 3}-.0487493
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0332498{col 26}{space 2} .0007117{col 37}{space 1}   46.72{col 46}{space 3}0.000{col 54}{space 4} .0318546{col 67}{space 3}  .034645
{txt}{space 8}age2 {c |}{col 14}{res}{space 2} -.038176{col 26}{space 2} .0007938{col 37}{space 1}  -48.09{col 46}{space 3}0.000{col 54}{space 4}-.0397319{col 67}{space 3}  -.03662
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1298411{col 26}{space 2} .0028295{col 37}{space 1}  -45.89{col 46}{space 3}0.000{col 54}{space 4}-.1353875{col 67}{space 3}-.1242947
{txt}{space 7}urban {c |}{col 14}{res}{space 2}  .074577{col 26}{space 2}   .00472{col 37}{space 1}   15.80{col 46}{space 3}0.000{col 54}{space 4} .0653247{col 67}{space 3} .0838294
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.0373653{col 26}{space 2} .0455026{col 37}{space 1}   -0.82{col 46}{space 3}0.412{col 54}{space 4}-.1265611{col 67}{space 3} .0518304
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}   29.53
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.04182344

{com}. 
. outreg2 using $results/ISQ_REPLICATE_T1.doc, append dec(3) ctitle(DV Working) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_T1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. ***STEP 8 Run Model 1 Regression at all $radius for FIGURE 2

. 
. 
. 
. local x = 1

. 
. local i = 0

. 
. while `x' < $radius + 1 {c -(}
{txt}  2{com}. 
. gen activex=active_binary_`x'
{txt}  3{com}. 
. gen inactivex=inactive_`x'
{txt}  4{com}. 
. eststo: quietly reg bribe_d activex inactivex cd* yd*  age age2 female urban, cl(cluster)
{txt}  5{com}. 
. test activex-inactivex=0
{txt}  6{com}. 
. eststo, add(p_diff r(p))
{txt}  7{com}. 
. estadd scalar difference = _b[activex]-_b[inactivex]
{txt}  8{com}. 
. drop activex inactivex 
{txt}  9{com}. 
. local x = `x' + 1
{txt} 10{com}. 
. {c )-}
{txt}({res}est1{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    0.01
{txt}{col 13}Prob > F ={res}    0.9375
{txt}(e({res}p_diff{txt}) = {res}.93747211{txt} added)
({res}est2{txt} stored)

added scalar:
         e(difference) =  {res}.00110351
{txt}({res}est3{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    0.05
{txt}{col 13}Prob > F ={res}    0.8176
{txt}(e({res}p_diff{txt}) = {res}.817622{txt} added)
({res}est4{txt} stored)

added scalar:
         e(difference) =  {res}-.00255944
{txt}({res}est5{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    1.19
{txt}{col 13}Prob > F ={res}    0.2751
{txt}(e({res}p_diff{txt}) = {res}.27513002{txt} added)
({res}est6{txt} stored)

added scalar:
         e(difference) =  {res}-.01103786
{txt}({res}est7{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.15
{txt}{col 13}Prob > F ={res}    0.0417
{txt}(e({res}p_diff{txt}) = {res}.04166095{txt} added)
({res}est8{txt} stored)

added scalar:
         e(difference) =  {res}-.0188548
{txt}({res}est9{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    2.65
{txt}{col 13}Prob > F ={res}    0.1035
{txt}(e({res}p_diff{txt}) = {res}.10353747{txt} added)
({res}est10{txt} stored)

added scalar:
         e(difference) =  {res}-.01418786
{txt}({res}est11{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.62
{txt}{col 13}Prob > F ={res}    0.0571
{txt}(e({res}p_diff{txt}) = {res}.05705758{txt} added)
({res}est12{txt} stored)

added scalar:
         e(difference) =  {res}-.01569515
{txt}({res}est13{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.76
{txt}{col 13}Prob > F ={res}    0.0526
{txt}(e({res}p_diff{txt}) = {res}.052633{txt} added)
({res}est14{txt} stored)

added scalar:
         e(difference) =  {res}-.0154091
{txt}({res}est15{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    2.79
{txt}{col 13}Prob > F ={res}    0.0948
{txt}(e({res}p_diff{txt}) = {res}.09477359{txt} added)
({res}est16{txt} stored)

added scalar:
         e(difference) =  {res}-.01292242
{txt}({res}est17{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.01
{txt}{col 13}Prob > F ={res}    0.0452
{txt}(e({res}p_diff{txt}) = {res}.04516906{txt} added)
({res}est18{txt} stored)

added scalar:
         e(difference) =  {res}-.0149839
{txt}({res}est19{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.36
{txt}{col 13}Prob > F ={res}    0.0207
{txt}(e({res}p_diff{txt}) = {res}.02067792{txt} added)
({res}est20{txt} stored)

added scalar:
         e(difference) =  {res}-.01698582
{txt}({res}est21{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.97
{txt}{col 13}Prob > F ={res}    0.0463
{txt}(e({res}p_diff{txt}) = {res}.04629438{txt} added)
({res}est22{txt} stored)

added scalar:
         e(difference) =  {res}-.01434499
{txt}({res}est23{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.32
{txt}{col 13}Prob > F ={res}    0.0211
{txt}(e({res}p_diff{txt}) = {res}.02107189{txt} added)
({res}est24{txt} stored)

added scalar:
         e(difference) =  {res}-.01648904
{txt}({res}est25{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.39
{txt}{col 13}Prob > F ={res}    0.0203
{txt}(e({res}p_diff{txt}) = {res}.02026541{txt} added)
({res}est26{txt} stored)

added scalar:
         e(difference) =  {res}-.01646326
{txt}({res}est27{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.92
{txt}{col 13}Prob > F ={res}    0.0266
{txt}(e({res}p_diff{txt}) = {res}.02662715{txt} added)
({res}est28{txt} stored)

added scalar:
         e(difference) =  {res}-.01549415
{txt}({res}est29{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.23
{txt}{col 13}Prob > F ={res}    0.0126
{txt}(e({res}p_diff{txt}) = {res}.01261033{txt} added)
({res}est30{txt} stored)

added scalar:
         e(difference) =  {res}-.01736794
{txt}({res}est31{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.82
{txt}{col 13}Prob > F ={res}    0.0090
{txt}(e({res}p_diff{txt}) = {res}.00902123{txt} added)
({res}est32{txt} stored)

added scalar:
         e(difference) =  {res}-.01800825
{txt}({res}est33{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.85
{txt}{col 13}Prob > F ={res}    0.0051
{txt}(e({res}p_diff{txt}) = {res}.00509431{txt} added)
({res}est34{txt} stored)

added scalar:
         e(difference) =  {res}-.01923012
{txt}({res}est35{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    8.07
{txt}{col 13}Prob > F ={res}    0.0045
{txt}(e({res}p_diff{txt}) = {res}.00450265{txt} added)
({res}est36{txt} stored)

added scalar:
         e(difference) =  {res}-.01951026
{txt}({res}est37{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.70
{txt}{col 13}Prob > F ={res}    0.0055
{txt}(e({res}p_diff{txt}) = {res}.00552233{txt} added)
({res}est38{txt} stored)

added scalar:
         e(difference) =  {res}-.01894946
{txt}({res}est39{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.69
{txt}{col 13}Prob > F ={res}    0.0097
{txt}(e({res}p_diff{txt}) = {res}.0097212{txt} added)
({res}est40{txt} stored)

added scalar:
         e(difference) =  {res}-.01756136
{txt}({res}est41{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.53
{txt}{col 13}Prob > F ={res}    0.0106
{txt}(e({res}p_diff{txt}) = {res}.01063708{txt} added)
({res}est42{txt} stored)

added scalar:
         e(difference) =  {res}-.01726875
{txt}({res}est43{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.72
{txt}{col 13}Prob > F ={res}    0.0168
{txt}(e({res}p_diff{txt}) = {res}.01680102{txt} added)
({res}est44{txt} stored)

added scalar:
         e(difference) =  {res}-.01590838
{txt}({res}est45{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.06
{txt}{col 13}Prob > F ={res}    0.0246
{txt}(e({res}p_diff{txt}) = {res}.02457127{txt} added)
({res}est46{txt} stored)

added scalar:
         e(difference) =  {res}-.01478373
{txt}({res}est47{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.28
{txt}{col 13}Prob > F ={res}    0.0215
{txt}(e({res}p_diff{txt}) = {res}.0215484{txt} added)
({res}est48{txt} stored)

added scalar:
         e(difference) =  {res}-.01494858
{txt}({res}est49{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.63
{txt}{col 13}Prob > F ={res}    0.0177
{txt}(e({res}p_diff{txt}) = {res}.01769344{txt} added)
({res}est50{txt} stored)

added scalar:
         e(difference) =  {res}-.01531226
{txt}({res}est51{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.89
{txt}{col 13}Prob > F ={res}    0.0486
{txt}(e({res}p_diff{txt}) = {res}.04858884{txt} added)
({res}est52{txt} stored)

added scalar:
         e(difference) =  {res}-.01265448
{txt}({res}est53{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.98
{txt}{col 13}Prob > F ={res}    0.0460
{txt}(e({res}p_diff{txt}) = {res}.04596705{txt} added)
({res}est54{txt} stored)

added scalar:
         e(difference) =  {res}-.01279551
{txt}({res}est55{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.72
{txt}{col 13}Prob > F ={res}    0.0298
{txt}(e({res}p_diff{txt}) = {res}.02981408{txt} added)
({res}est56{txt} stored)

added scalar:
         e(difference) =  {res}-.01384552
{txt}({res}est57{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.95
{txt}{col 13}Prob > F ={res}    0.0260
{txt}(e({res}p_diff{txt}) = {res}.02604986{txt} added)
({res}est58{txt} stored)

added scalar:
         e(difference) =  {res}-.01409631
{txt}({res}est59{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.84
{txt}{col 13}Prob > F ={res}    0.0502
{txt}(e({res}p_diff{txt}) = {res}.05015463{txt} added)
({res}est60{txt} stored)

added scalar:
         e(difference) =  {res}-.01233847
{txt}({res}est61{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.07
{txt}{col 13}Prob > F ={res}    0.0436
{txt}(e({res}p_diff{txt}) = {res}.04355416{txt} added)
({res}est62{txt} stored)

added scalar:
         e(difference) =  {res}-.01266253
{txt}({res}est63{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.39
{txt}{col 13}Prob > F ={res}    0.0362
{txt}(e({res}p_diff{txt}) = {res}.03616201{txt} added)
({res}est64{txt} stored)

added scalar:
         e(difference) =  {res}-.01302126
{txt}({res}est65{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.98
{txt}{col 13}Prob > F ={res}    0.0256
{txt}(e({res}p_diff{txt}) = {res}.02559704{txt} added)
({res}est66{txt} stored)

added scalar:
         e(difference) =  {res}-.01381053
{txt}({res}est67{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.00
{txt}{col 13}Prob > F ={res}    0.0456
{txt}(e({res}p_diff{txt}) = {res}.04564575{txt} added)
({res}est68{txt} stored)

added scalar:
         e(difference) =  {res}-.01225498
{txt}({res}est69{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.19
{txt}{col 13}Prob > F ={res}    0.0227
{txt}(e({res}p_diff{txt}) = {res}.02273604{txt} added)
({res}est70{txt} stored)

added scalar:
         e(difference) =  {res}-.01397065
{txt}({res}est71{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.84
{txt}{col 13}Prob > F ={res}    0.0501
{txt}(e({res}p_diff{txt}) = {res}.05008904{txt} added)
({res}est72{txt} stored)

added scalar:
         e(difference) =  {res}-.01201221
{txt}({res}est73{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.17
{txt}{col 13}Prob > F ={res}    0.0751
{txt}(e({res}p_diff{txt}) = {res}.07505484{txt} added)
({res}est74{txt} stored)

added scalar:
         e(difference) =  {res}-.01085332
{txt}({res}est75{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.17
{txt}{col 13}Prob > F ={res}    0.0411
{txt}(e({res}p_diff{txt}) = {res}.04113435{txt} added)
({res}est76{txt} stored)

added scalar:
         e(difference) =  {res}-.0124729
{txt}({res}est77{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.58
{txt}{col 13}Prob > F ={res}    0.0324
{txt}(e({res}p_diff{txt}) = {res}.03235786{txt} added)
({res}est78{txt} stored)

added scalar:
         e(difference) =  {res}-.01301402
{txt}({res}est79{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.70
{txt}{col 13}Prob > F ={res}    0.0303
{txt}(e({res}p_diff{txt}) = {res}.03026465{txt} added)
({res}est80{txt} stored)

added scalar:
         e(difference) =  {res}-.01312304
{txt}({res}est81{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.82
{txt}{col 13}Prob > F ={res}    0.0281
{txt}(e({res}p_diff{txt}) = {res}.02808201{txt} added)
({res}est82{txt} stored)

added scalar:
         e(difference) =  {res}-.01321383
{txt}({res}est83{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.27
{txt}{col 13}Prob > F ={res}    0.0217
{txt}(e({res}p_diff{txt}) = {res}.02168708{txt} added)
({res}est84{txt} stored)

added scalar:
         e(difference) =  {res}-.01368598
{txt}({res}est85{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.74
{txt}{col 13}Prob > F ={res}    0.0294
{txt}(e({res}p_diff{txt}) = {res}.02941731{txt} added)
({res}est86{txt} stored)

added scalar:
         e(difference) =  {res}-.01292368
{txt}({res}est87{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.42
{txt}{col 13}Prob > F ={res}    0.0200
{txt}(e({res}p_diff{txt}) = {res}.01996351{txt} added)
({res}est88{txt} stored)

added scalar:
         e(difference) =  {res}-.01379567
{txt}({res}est89{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.21
{txt}{col 13}Prob > F ={res}    0.0403
{txt}(e({res}p_diff{txt}) = {res}.04026956{txt} added)
({res}est90{txt} stored)

added scalar:
         e(difference) =  {res}-.01201453
{txt}({res}est91{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.47
{txt}{col 13}Prob > F ={res}    0.0345
{txt}(e({res}p_diff{txt}) = {res}.03449113{txt} added)
({res}est92{txt} stored)

added scalar:
         e(difference) =  {res}-.01236813
{txt}({res}est93{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    2.90
{txt}{col 13}Prob > F ={res}    0.0884
{txt}(e({res}p_diff{txt}) = {res}.08838885{txt} added)
({res}est94{txt} stored)

added scalar:
         e(difference) =  {res}-.00989745
{txt}({res}est95{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.67
{txt}{col 13}Prob > F ={res}    0.0553
{txt}(e({res}p_diff{txt}) = {res}.05533156{txt} added)
({res}est96{txt} stored)

added scalar:
         e(difference) =  {res}-.01102309
{txt}({res}est97{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.49
{txt}{col 13}Prob > F ={res}    0.0617
{txt}(e({res}p_diff{txt}) = {res}.06166062{txt} added)
({res}est98{txt} stored)

added scalar:
         e(difference) =  {res}-.01070895
{txt}({res}est99{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.13
{txt}{col 13}Prob > F ={res}    0.0235
{txt}(e({res}p_diff{txt}) = {res}.02347919{txt} added)
({res}est100{txt} stored)

added scalar:
         e(difference) =  {res}-.01306384
{txt}({res}est101{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.34
{txt}{col 13}Prob > F ={res}    0.0208
{txt}(e({res}p_diff{txt}) = {res}.02081516{txt} added)
({res}est102{txt} stored)

added scalar:
         e(difference) =  {res}-.01324582
{txt}({res}est103{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.01
{txt}{col 13}Prob > F ={res}    0.0142
{txt}(e({res}p_diff{txt}) = {res}.01423445{txt} added)
({res}est104{txt} stored)

added scalar:
         e(difference) =  {res}-.01403389
{txt}({res}est105{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.98
{txt}{col 13}Prob > F ={res}    0.0145
{txt}(e({res}p_diff{txt}) = {res}.01452283{txt} added)
({res}est106{txt} stored)

added scalar:
         e(difference) =  {res}-.01393873
{txt}({res}est107{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.16
{txt}{col 13}Prob > F ={res}    0.0131
{txt}(e({res}p_diff{txt}) = {res}.0131046{txt} added)
({res}est108{txt} stored)

added scalar:
         e(difference) =  {res}-.01418317
{txt}({res}est109{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.59
{txt}{col 13}Prob > F ={res}    0.0181
{txt}(e({res}p_diff{txt}) = {res}.01811937{txt} added)
({res}est110{txt} stored)

added scalar:
         e(difference) =  {res}-.01345632
{txt}({res}est111{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.03
{txt}{col 13}Prob > F ={res}    0.0250
{txt}(e({res}p_diff{txt}) = {res}.0249895{txt} added)
({res}est112{txt} stored)

added scalar:
         e(difference) =  {res}-.01277357
{txt}({res}est113{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.27
{txt}{col 13}Prob > F ={res}    0.0389
{txt}(e({res}p_diff{txt}) = {res}.03891033{txt} added)
({res}est114{txt} stored)

added scalar:
         e(difference) =  {res}-.01170155
{txt}({res}est115{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.49
{txt}{col 13}Prob > F ={res}    0.0341
{txt}(e({res}p_diff{txt}) = {res}.03405895{txt} added)
({res}est116{txt} stored)

added scalar:
         e(difference) =  {res}-.01202515
{txt}({res}est117{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.24
{txt}{col 13}Prob > F ={res}    0.0396
{txt}(e({res}p_diff{txt}) = {res}.03955607{txt} added)
({res}est118{txt} stored)

added scalar:
         e(difference) =  {res}-.01162074
{txt}({res}est119{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.81
{txt}{col 13}Prob > F ={res}    0.0509
{txt}(e({res}p_diff{txt}) = {res}.05094596{txt} added)
({res}est120{txt} stored)

added scalar:
         e(difference) =  {res}-.01101063
{txt}({res}est121{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.03
{txt}{col 13}Prob > F ={res}    0.0818
{txt}(e({res}p_diff{txt}) = {res}.08181901{txt} added)
({res}est122{txt} stored)

added scalar:
         e(difference) =  {res}-.00977785
{txt}({res}est123{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.62
{txt}{col 13}Prob > F ={res}    0.0571
{txt}(e({res}p_diff{txt}) = {res}.05709661{txt} added)
({res}est124{txt} stored)

added scalar:
         e(difference) =  {res}-.01067118
{txt}({res}est125{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.72
{txt}{col 13}Prob > F ={res}    0.0299
{txt}(e({res}p_diff{txt}) = {res}.0298641{txt} added)
({res}est126{txt} stored)

added scalar:
         e(difference) =  {res}-.01222449
{txt}({res}est127{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.03
{txt}{col 13}Prob > F ={res}    0.0249
{txt}(e({res}p_diff{txt}) = {res}.02489912{txt} added)
({res}est128{txt} stored)

added scalar:
         e(difference) =  {res}-.01264318
{txt}({res}est129{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.53
{txt}{col 13}Prob > F ={res}    0.0187
{txt}(e({res}p_diff{txt}) = {res}.01869816{txt} added)
({res}est130{txt} stored)

added scalar:
         e(difference) =  {res}-.01324856
{txt}({res}est131{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.48
{txt}{col 13}Prob > F ={res}    0.0109
{txt}(e({res}p_diff{txt}) = {res}.01092758{txt} added)
({res}est132{txt} stored)

added scalar:
         e(difference) =  {res}-.01422523
{txt}({res}est133{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.10
{txt}{col 13}Prob > F ={res}    0.0077
{txt}(e({res}p_diff{txt}) = {res}.0077036{txt} added)
({res}est134{txt} stored)

added scalar:
         e(difference) =  {res}-.01486255
{txt}({res}est135{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.47
{txt}{col 13}Prob > F ={res}    0.0063
{txt}(e({res}p_diff{txt}) = {res}.00628085{txt} added)
({res}est136{txt} stored)

added scalar:
         e(difference) =  {res}-.01517239
{txt}({res}est137{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.72
{txt}{col 13}Prob > F ={res}    0.0055
{txt}(e({res}p_diff{txt}) = {res}.00546749{txt} added)
({res}est138{txt} stored)

added scalar:
         e(difference) =  {res}-.01556321
{txt}({res}est139{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.87
{txt}{col 13}Prob > F ={res}    0.0088
{txt}(e({res}p_diff{txt}) = {res}.00878057{txt} added)
({res}est140{txt} stored)

added scalar:
         e(difference) =  {res}-.01463601
{txt}({res}est141{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.66
{txt}{col 13}Prob > F ={res}    0.0099
{txt}(e({res}p_diff{txt}) = {res}.00987451{txt} added)
({res}est142{txt} stored)

added scalar:
         e(difference) =  {res}-.01441951
{txt}({res}est143{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.54
{txt}{col 13}Prob > F ={res}    0.0186
{txt}(e({res}p_diff{txt}) = {res}.01857817{txt} added)
({res}est144{txt} stored)

added scalar:
         e(difference) =  {res}-.01306296
{txt}({res}est145{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.93
{txt}{col 13}Prob > F ={res}    0.0085
{txt}(e({res}p_diff{txt}) = {res}.00848802{txt} added)
({res}est146{txt} stored)

added scalar:
         e(difference) =  {res}-.0146211
{txt}({res}est147{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.15
{txt}{col 13}Prob > F ={res}    0.0075
{txt}(e({res}p_diff{txt}) = {res}.00752633{txt} added)
({res}est148{txt} stored)

added scalar:
         e(difference) =  {res}-.0148435
{txt}({res}est149{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.35
{txt}{col 13}Prob > F ={res}    0.0118
{txt}(e({res}p_diff{txt}) = {res}.01178772{txt} added)
({res}est150{txt} stored)

added scalar:
         e(difference) =  {res}-.01397974
{txt}({res}est151{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.13
{txt}{col 13}Prob > F ={res}    0.0133
{txt}(e({res}p_diff{txt}) = {res}.01331521{txt} added)
({res}est152{txt} stored)

added scalar:
         e(difference) =  {res}-.01374429
{txt}({res}est153{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.20
{txt}{col 13}Prob > F ={res}    0.0128
{txt}(e({res}p_diff{txt}) = {res}.01275854{txt} added)
({res}est154{txt} stored)

added scalar:
         e(difference) =  {res}-.01380479
{txt}({res}est155{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.58
{txt}{col 13}Prob > F ={res}    0.0103
{txt}(e({res}p_diff{txt}) = {res}.01033941{txt} added)
({res}est156{txt} stored)

added scalar:
         e(difference) =  {res}-.01426201
{txt}({res}est157{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.09
{txt}{col 13}Prob > F ={res}    0.0136
{txt}(e({res}p_diff{txt}) = {res}.01363472{txt} added)
({res}est158{txt} stored)

added scalar:
         e(difference) =  {res}-.01365808
{txt}({res}est159{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.60
{txt}{col 13}Prob > F ={res}    0.0102
{txt}(e({res}p_diff{txt}) = {res}.01023556{txt} added)
({res}est160{txt} stored)

added scalar:
         e(difference) =  {res}-.01422098
{txt}({res}est161{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.78
{txt}{col 13}Prob > F ={res}    0.0092
{txt}(e({res}p_diff{txt}) = {res}.0092227{txt} added)
({res}est162{txt} stored)

added scalar:
         e(difference) =  {res}-.01442525
{txt}({res}est163{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.70
{txt}{col 13}Prob > F ={res}    0.0055
{txt}(e({res}p_diff{txt}) = {res}.00554622{txt} added)
({res}est164{txt} stored)

added scalar:
         e(difference) =  {res}-.01530745
{txt}({res}est165{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    7.23
{txt}{col 13}Prob > F ={res}    0.0072
{txt}(e({res}p_diff{txt}) = {res}.00716598{txt} added)
({res}est166{txt} stored)

added scalar:
         e(difference) =  {res}-.01485584
{txt}({res}est167{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.33
{txt}{col 13}Prob > F ={res}    0.0119
{txt}(e({res}p_diff{txt}) = {res}.0118682{txt} added)
({res}est168{txt} stored)

added scalar:
         e(difference) =  {res}-.01390293
{txt}({res}est169{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.12
{txt}{col 13}Prob > F ={res}    0.0134
{txt}(e({res}p_diff{txt}) = {res}.01338776{txt} added)
({res}est170{txt} stored)

added scalar:
         e(difference) =  {res}-.01359915
{txt}({res}est171{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.72
{txt}{col 13}Prob > F ={res}    0.0168
{txt}(e({res}p_diff{txt}) = {res}.01682217{txt} added)
({res}est172{txt} stored)

added scalar:
         e(difference) =  {res}-.01315769
{txt}({res}est173{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.34
{txt}{col 13}Prob > F ={res}    0.0118
{txt}(e({res}p_diff{txt}) = {res}.01179496{txt} added)
({res}est174{txt} stored)

added scalar:
         e(difference) =  {res}-.01388012
{txt}({res}est175{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.33
{txt}{col 13}Prob > F ={res}    0.0119
{txt}(e({res}p_diff{txt}) = {res}.01188083{txt} added)
({res}est176{txt} stored)

added scalar:
         e(difference) =  {res}-.01387234
{txt}({res}est177{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    5.94
{txt}{col 13}Prob > F ={res}    0.0148
{txt}(e({res}p_diff{txt}) = {res}.01480004{txt} added)
({res}est178{txt} stored)

added scalar:
         e(difference) =  {res}-.01339212
{txt}({res}est179{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    6.54
{txt}{col 13}Prob > F ={res}    0.0106
{txt}(e({res}p_diff{txt}) = {res}.01058826{txt} added)
({res}est180{txt} stored)

added scalar:
         e(difference) =  {res}-.01393492
{txt}({res}est181{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.82
{txt}{col 13}Prob > F ={res}    0.0281
{txt}(e({res}p_diff{txt}) = {res}.02814875{txt} added)
({res}est182{txt} stored)

added scalar:
         e(difference) =  {res}-.01192537
{txt}({res}est183{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.78
{txt}{col 13}Prob > F ={res}    0.0289
{txt}(e({res}p_diff{txt}) = {res}.02887065{txt} added)
({res}est184{txt} stored)

added scalar:
         e(difference) =  {res}-.01184396
{txt}({res}est185{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.33
{txt}{col 13}Prob > F ={res}    0.0374
{txt}(e({res}p_diff{txt}) = {res}.03744302{txt} added)
({res}est186{txt} stored)

added scalar:
         e(difference) =  {res}-.01124096
{txt}({res}est187{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.91
{txt}{col 13}Prob > F ={res}    0.0480
{txt}(e({res}p_diff{txt}) = {res}.04799239{txt} added)
({res}est188{txt} stored)

added scalar:
         e(difference) =  {res}-.01068305
{txt}({res}est189{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.23
{txt}{col 13}Prob > F ={res}    0.0397
{txt}(e({res}p_diff{txt}) = {res}.03966998{txt} added)
({res}est190{txt} stored)

added scalar:
         e(difference) =  {res}-.01114698
{txt}({res}est191{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.79
{txt}{col 13}Prob > F ={res}    0.0517
{txt}(e({res}p_diff{txt}) = {res}.05165159{txt} added)
({res}est192{txt} stored)

added scalar:
         e(difference) =  {res}-.01046606
{txt}({res}est193{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.73
{txt}{col 13}Prob > F ={res}    0.0534
{txt}(e({res}p_diff{txt}) = {res}.0533942{txt} added)
({res}est194{txt} stored)

added scalar:
         e(difference) =  {res}-.01036282
{txt}({res}est195{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.19
{txt}{col 13}Prob > F ={res}    0.0743
{txt}(e({res}p_diff{txt}) = {res}.07427698{txt} added)
({res}est196{txt} stored)

added scalar:
         e(difference) =  {res}-.00954866
{txt}({res}est197{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.22
{txt}{col 13}Prob > F ={res}    0.0729
{txt}(e({res}p_diff{txt}) = {res}.07285487{txt} added)
({res}est198{txt} stored)

added scalar:
         e(difference) =  {res}-.00958053
{txt}({res}est199{txt} stored)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}activex - inactivex = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.30
{txt}{col 13}Prob > F ={res}    0.0692
{txt}(e({res}p_diff{txt}) = {res}.0692279{txt} added)
({res}est200{txt} stored)

added scalar:
         e(difference) =  {res}-.00973317

{com}. 
. 
. 
. 
. 
. esttab using "$data\ISQ_REPLICATE_figure2.csv", stat(p_diff) plain replace
{res}{txt}(note: file G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_REPLICATE_figure2.csv not found)
(output written to {browse  `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_REPLICATE_figure2.csv"'})

{com}. 
. 
. 
. 
. 
. *** NEED TO MANUALLY Transpose VALUES FROM  "$data\ISQ_REPLICATE_figure2.csv" and assign p-value labels in figure_2.csv to make figure in R below *******

. 
. estimates drop est*

. 
. 
. 
. ****IN R

. 
. *install.packages("ggplot2")

. 
. *install.packages("gcookbook")

. 
. *library(ggplot2)

. 
. 
. 
. *Figure 2 - Diff_Diff

. 
. 
. 
. *** Set working directory ******

. 
. *mydata <- read.csv("figure_2.csv", header=TRUE)

. 
. *dist_plot <- ggplot(mydata, aes(x=km_dist, y=diff_diff, shape=p_value)) + geom_point(colour='red', size=2) + scale_shape_manual(values=c(1, 8, 3, 2, 16)) + stat_smooth(aes(group=1), method=loess, alpha=.4) + ylab("Active Inactive Diff in Diff") + xlab("Project Capture Radius in KM") + ggtitle("Figure 1: Active Inactive Diff in Diff at Different Spatial Capture Radii") + theme(plot.title = element_text(hjust = 0.5), legend.position="bottom")

. 
. 
. 
. 
. 
. ***  Robustness checks

. 
. 
. 
. *** Table A1 Robustness Checks - 5 year "burn in"

. 
. 
. 
. *Model 1 - All FDI

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. reg bribe_d active inactive cd* yd* age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,799
                                                {txt}F(47, 6987)       =  {res}   105.32
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0966
                                                {txt}Root MSE          =    {res} .35285

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0094214{col 26}{space 2} .0044212{col 37}{space 1}    2.13{col 46}{space 3}0.033{col 54}{space 4} .0007545{col 67}{space 3} .0180883
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0264919{col 26}{space 2} .0073013{col 37}{space 1}    3.63{col 46}{space 3}0.000{col 54}{space 4} .0121791{col 67}{space 3} .0408046
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0826123{col 26}{space 2} .0255617{col 37}{space 1}   -3.23{col 46}{space 3}0.001{col 54}{space 4}-.1327209{col 67}{space 3}-.0325036
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0316636{col 26}{space 2} .0225709{col 37}{space 1}   -1.40{col 46}{space 3}0.161{col 54}{space 4}-.0759095{col 67}{space 3} .0125822
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} -.157674{col 26}{space 2}  .020938{col 37}{space 1}   -7.53{col 46}{space 3}0.000{col 54}{space 4}-.1987188{col 67}{space 3}-.1166292
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} -.032687{col 26}{space 2} .0221521{col 37}{space 1}   -1.48{col 46}{space 3}0.140{col 54}{space 4}-.0761119{col 67}{space 3} .0107379
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .1019302{col 26}{space 2} .0275312{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .0479607{col 67}{space 3} .1558996
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1402823{col 26}{space 2} .0221545{col 37}{space 1}   -6.33{col 46}{space 3}0.000{col 54}{space 4}-.1837118{col 67}{space 3}-.0968528
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0155075{col 26}{space 2} .0240929{col 37}{space 1}    0.64{col 46}{space 3}0.520{col 54}{space 4}-.0317218{col 67}{space 3} .0627368
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1120823{col 26}{space 2} .0320785{col 37}{space 1}    3.49{col 46}{space 3}0.000{col 54}{space 4} .0491987{col 67}{space 3}  .174966
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0133528{col 26}{space 2} .0239238{col 37}{space 1}   -0.56{col 46}{space 3}0.577{col 54}{space 4}-.0602507{col 67}{space 3} .0335452
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0220616{col 26}{space 2}  .021713{col 37}{space 1}   -1.02{col 46}{space 3}0.310{col 54}{space 4}-.0646258{col 67}{space 3} .0205026
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0433477{col 26}{space 2} .0261191{col 37}{space 1}    1.66{col 46}{space 3}0.097{col 54}{space 4}-.0078536{col 67}{space 3} .0945491
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1882519{col 26}{space 2} .0238877{col 37}{space 1}    7.88{col 46}{space 3}0.000{col 54}{space 4} .1414248{col 67}{space 3}  .235079
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} -.035483{col 26}{space 2} .0242265{col 37}{space 1}   -1.46{col 46}{space 3}0.143{col 54}{space 4}-.0829743{col 67}{space 3} .0120084
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1494842{col 26}{space 2}  .026986{col 37}{space 1}    5.54{col 46}{space 3}0.000{col 54}{space 4} .0965834{col 67}{space 3}  .202385
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0669177{col 26}{space 2} .0222532{col 37}{space 1}   -3.01{col 46}{space 3}0.003{col 54}{space 4}-.1105407{col 67}{space 3}-.0232948
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1142561{col 26}{space 2} .0217101{col 37}{space 1}   -5.26{col 46}{space 3}0.000{col 54}{space 4}-.1568145{col 67}{space 3}-.0716977
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0336114{col 26}{space 2} .0220109{col 37}{space 1}   -1.53{col 46}{space 3}0.127{col 54}{space 4}-.0767595{col 67}{space 3} .0095367
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1387515{col 26}{space 2} .0209281{col 37}{space 1}   -6.63{col 46}{space 3}0.000{col 54}{space 4} -.179777{col 67}{space 3} -.097726
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2174981{col 26}{space 2} .0392917{col 37}{space 1}    5.54{col 46}{space 3}0.000{col 54}{space 4} .1404743{col 67}{space 3} .2945218
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0824451{col 26}{space 2} .0233496{col 37}{space 1}    3.53{col 46}{space 3}0.000{col 54}{space 4} .0366727{col 67}{space 3} .1282175
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1206402{col 26}{space 2} .0215999{col 37}{space 1}   -5.59{col 46}{space 3}0.000{col 54}{space 4}-.1629826{col 67}{space 3}-.0782978
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0476498{col 26}{space 2}  .023169{col 37}{space 1}   -2.06{col 46}{space 3}0.040{col 54}{space 4}-.0930681{col 67}{space 3}-.0022315
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0923305{col 26}{space 2} .0235474{col 37}{space 1}    3.92{col 46}{space 3}0.000{col 54}{space 4} .0461705{col 67}{space 3} .1384906
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0532984{col 26}{space 2} .0220936{col 37}{space 1}   -2.41{col 46}{space 3}0.016{col 54}{space 4}-.0966086{col 67}{space 3}-.0099882
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .2020634{col 26}{space 2} .0282631{col 37}{space 1}    7.15{col 46}{space 3}0.000{col 54}{space 4} .1466592{col 67}{space 3} .2574676
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1091173{col 26}{space 2} .0218172{col 37}{space 1}   -5.00{col 46}{space 3}0.000{col 54}{space 4}-.1518857{col 67}{space 3}-.0663489
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0625746{col 26}{space 2} .0296425{col 37}{space 1}    2.11{col 46}{space 3}0.035{col 54}{space 4} .0044664{col 67}{space 3} .1206829
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} -.059897{col 26}{space 2} .0229626{col 37}{space 1}   -2.61{col 46}{space 3}0.009{col 54}{space 4}-.1049107{col 67}{space 3}-.0148834
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0239276{col 26}{space 2} .0274702{col 37}{space 1}   -0.87{col 46}{space 3}0.384{col 54}{space 4}-.0777775{col 67}{space 3} .0299222
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0475932{col 26}{space 2} .0221594{col 37}{space 1}   -2.15{col 46}{space 3}0.032{col 54}{space 4}-.0910323{col 67}{space 3}-.0041541
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .0025612{col 26}{space 2} .0227046{col 37}{space 1}    0.11{col 46}{space 3}0.910{col 54}{space 4}-.0419467{col 67}{space 3} .0470691
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1070559{col 26}{space 2} .0236437{col 37}{space 1}   -4.53{col 46}{space 3}0.000{col 54}{space 4}-.1534047{col 67}{space 3}-.0607072
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .1017635{col 26}{space 2} .0255861{col 37}{space 1}    3.98{col 46}{space 3}0.000{col 54}{space 4} .0516069{col 67}{space 3}   .15192
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0668553{col 26}{space 2} .0248179{col 37}{space 1}   -2.69{col 46}{space 3}0.007{col 54}{space 4} -.115506{col 67}{space 3}-.0182046
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0561645{col 26}{space 2} .0243354{col 37}{space 1}    2.31{col 46}{space 3}0.021{col 54}{space 4} .0084598{col 67}{space 3} .1038693
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.1000111{col 26}{space 2} .0245562{col 37}{space 1}   -4.07{col 46}{space 3}0.000{col 54}{space 4}-.1481488{col 67}{space 3}-.0518735
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0919774{col 26}{space 2} .0254609{col 37}{space 1}   -3.61{col 46}{space 3}0.000{col 54}{space 4}-.1418885{col 67}{space 3}-.0420663
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0946122{col 26}{space 2} .0246707{col 37}{space 1}   -3.83{col 46}{space 3}0.000{col 54}{space 4}-.1429743{col 67}{space 3}-.0462501
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0671242{col 26}{space 2} .0251206{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.1163681{col 67}{space 3}-.0178802
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1763753{col 26}{space 2} .0239106{col 37}{space 1}   -7.38{col 46}{space 3}0.000{col 54}{space 4}-.2232474{col 67}{space 3}-.1295033
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1839568{col 26}{space 2} .0251969{col 37}{space 1}   -7.30{col 46}{space 3}0.000{col 54}{space 4}-.2333504{col 67}{space 3}-.1345633
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0035772{col 26}{space 2} .0004321{col 37}{space 1}    8.28{col 46}{space 3}0.000{col 54}{space 4} .0027301{col 67}{space 3} .0044243
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0054541{col 26}{space 2} .0004695{col 37}{space 1}  -11.62{col 46}{space 3}0.000{col 54}{space 4}-.0063744{col 67}{space 3}-.0045339
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0663622{col 26}{space 2} .0025812{col 37}{space 1}  -25.71{col 46}{space 3}0.000{col 54}{space 4}-.0714221{col 67}{space 3}-.0613023
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0317245{col 26}{space 2} .0038759{col 37}{space 1}    8.18{col 46}{space 3}0.000{col 54}{space 4} .0241265{col 67}{space 3} .0393226
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2692543{col 26}{space 2} .0335549{col 37}{space 1}    8.02{col 46}{space 3}0.000{col 54}{space 4} .2034766{col 67}{space 3}  .335032
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}    4.98
{txt}{col 13}Prob > F ={res}    0.0257

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01707046

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(All FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 2 - FDI from High Corruption Countries

. 
. 
. 
. gen active=active50_highcorr

. 
. gen inactive=inactive50_highcorr

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,799
                                                {txt}F(47, 6987)       =  {res}   102.49
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0966
                                                {txt}Root MSE          =    {res} .35285

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0128451{col 26}{space 2} .0056107{col 37}{space 1}    2.29{col 46}{space 3}0.022{col 54}{space 4} .0018464{col 67}{space 3} .0238438
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0292238{col 26}{space 2} .0087762{col 37}{space 1}    3.33{col 46}{space 3}0.001{col 54}{space 4} .0120197{col 67}{space 3}  .046428
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0779346{col 26}{space 2} .0259063{col 37}{space 1}   -3.01{col 46}{space 3}0.003{col 54}{space 4}-.1287188{col 67}{space 3}-.0271505
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0271187{col 26}{space 2}  .023062{col 37}{space 1}   -1.18{col 46}{space 3}0.240{col 54}{space 4}-.0723272{col 67}{space 3} .0180898
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1555357{col 26}{space 2} .0213887{col 37}{space 1}   -7.27{col 46}{space 3}0.000{col 54}{space 4}-.1974641{col 67}{space 3}-.1136072
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0319731{col 26}{space 2} .0224811{col 37}{space 1}   -1.42{col 46}{space 3}0.155{col 54}{space 4}-.0760429{col 67}{space 3} .0120968
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .1027702{col 26}{space 2} .0278838{col 37}{space 1}    3.69{col 46}{space 3}0.000{col 54}{space 4} .0481096{col 67}{space 3} .1574308
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1417457{col 26}{space 2} .0224246{col 37}{space 1}   -6.32{col 46}{space 3}0.000{col 54}{space 4}-.1857046{col 67}{space 3}-.0977867
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0195182{col 26}{space 2} .0245702{col 37}{space 1}    0.79{col 46}{space 3}0.427{col 54}{space 4}-.0286469{col 67}{space 3} .0676834
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1191242{col 26}{space 2} .0323954{col 37}{space 1}    3.68{col 46}{space 3}0.000{col 54}{space 4} .0556194{col 67}{space 3}  .182629
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} -.013264{col 26}{space 2} .0241941{col 37}{space 1}   -0.55{col 46}{space 3}0.584{col 54}{space 4}-.0606917{col 67}{space 3} .0341637
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0209576{col 26}{space 2} .0220678{col 37}{space 1}   -0.95{col 46}{space 3}0.342{col 54}{space 4}-.0642172{col 67}{space 3} .0223019
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0442984{col 26}{space 2} .0263645{col 37}{space 1}    1.68{col 46}{space 3}0.093{col 54}{space 4} -.007384{col 67}{space 3} .0959809
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1932587{col 26}{space 2} .0242635{col 37}{space 1}    7.97{col 46}{space 3}0.000{col 54}{space 4} .1456949{col 67}{space 3} .2408225
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0347599{col 26}{space 2} .0245567{col 37}{space 1}   -1.42{col 46}{space 3}0.157{col 54}{space 4}-.0828984{col 67}{space 3} .0133786
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1485925{col 26}{space 2} .0271865{col 37}{space 1}    5.47{col 46}{space 3}0.000{col 54}{space 4} .0952987{col 67}{space 3} .2018864
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0618079{col 26}{space 2} .0227085{col 37}{space 1}   -2.72{col 46}{space 3}0.007{col 54}{space 4}-.1063235{col 67}{space 3}-.0172923
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1119744{col 26}{space 2} .0222037{col 37}{space 1}   -5.04{col 46}{space 3}0.000{col 54}{space 4}-.1555004{col 67}{space 3}-.0684484
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0320637{col 26}{space 2} .0224081{col 37}{space 1}   -1.43{col 46}{space 3}0.153{col 54}{space 4}-.0759904{col 67}{space 3}  .011863
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1289989{col 26}{space 2} .0216244{col 37}{space 1}   -5.97{col 46}{space 3}0.000{col 54}{space 4}-.1713894{col 67}{space 3}-.0866085
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2258887{col 26}{space 2} .0394205{col 37}{space 1}    5.73{col 46}{space 3}0.000{col 54}{space 4} .1486125{col 67}{space 3}  .303165
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0872944{col 26}{space 2} .0237341{col 37}{space 1}    3.68{col 46}{space 3}0.000{col 54}{space 4} .0407683{col 67}{space 3} .1338205
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1210274{col 26}{space 2} .0219442{col 37}{space 1}   -5.52{col 46}{space 3}0.000{col 54}{space 4}-.1640448{col 67}{space 3}  -.07801
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0443974{col 26}{space 2} .0235202{col 37}{space 1}   -1.89{col 46}{space 3}0.059{col 54}{space 4}-.0905041{col 67}{space 3} .0017094
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0957551{col 26}{space 2} .0239666{col 37}{space 1}    4.00{col 46}{space 3}0.000{col 54}{space 4} .0487734{col 67}{space 3} .1427369
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0477405{col 26}{space 2} .0226442{col 37}{space 1}   -2.11{col 46}{space 3}0.035{col 54}{space 4}  -.09213{col 67}{space 3} -.003351
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}  .204395{col 26}{space 2} .0284616{col 37}{space 1}    7.18{col 46}{space 3}0.000{col 54}{space 4} .1486017{col 67}{space 3} .2601884
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1024875{col 26}{space 2} .0224115{col 37}{space 1}   -4.57{col 46}{space 3}0.000{col 54}{space 4}-.1464209{col 67}{space 3} -.058554
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0629637{col 26}{space 2} .0298221{col 37}{space 1}    2.11{col 46}{space 3}0.035{col 54}{space 4} .0045034{col 67}{space 3} .1214241
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0592381{col 26}{space 2} .0231749{col 37}{space 1}   -2.56{col 46}{space 3}0.011{col 54}{space 4} -.104668{col 67}{space 3}-.0138083
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0229994{col 26}{space 2} .0276334{col 37}{space 1}   -0.83{col 46}{space 3}0.405{col 54}{space 4}-.0771693{col 67}{space 3} .0311705
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0471208{col 26}{space 2} .0224804{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0911891{col 67}{space 3}-.0030525
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .0055262{col 26}{space 2}  .023126{col 37}{space 1}    0.24{col 46}{space 3}0.811{col 54}{space 4}-.0398077{col 67}{space 3} .0508601
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0979845{col 26}{space 2} .0242408{col 37}{space 1}   -4.04{col 46}{space 3}0.000{col 54}{space 4}-.1455039{col 67}{space 3}-.0504651
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .1012146{col 26}{space 2} .0258548{col 37}{space 1}    3.91{col 46}{space 3}0.000{col 54}{space 4} .0505314{col 67}{space 3} .1518978
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0666874{col 26}{space 2} .0250107{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.1157159{col 67}{space 3}-.0176589
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0555505{col 26}{space 2} .0246313{col 37}{space 1}    2.26{col 46}{space 3}0.024{col 54}{space 4} .0072656{col 67}{space 3} .1038354
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.0989466{col 26}{space 2} .0244637{col 37}{space 1}   -4.04{col 46}{space 3}0.000{col 54}{space 4} -.146903{col 67}{space 3}-.0509902
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0915325{col 26}{space 2} .0253899{col 37}{space 1}   -3.61{col 46}{space 3}0.000{col 54}{space 4}-.1413044{col 67}{space 3}-.0417606
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0941625{col 26}{space 2} .0246064{col 37}{space 1}   -3.83{col 46}{space 3}0.000{col 54}{space 4}-.1423985{col 67}{space 3}-.0459264
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0672287{col 26}{space 2} .0250193{col 37}{space 1}   -2.69{col 46}{space 3}0.007{col 54}{space 4}-.1162741{col 67}{space 3}-.0181834
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1768008{col 26}{space 2} .0238425{col 37}{space 1}   -7.42{col 46}{space 3}0.000{col 54}{space 4}-.2235393{col 67}{space 3}-.1300623
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1840397{col 26}{space 2} .0251003{col 37}{space 1}   -7.33{col 46}{space 3}0.000{col 54}{space 4}-.2332438{col 67}{space 3}-.1348356
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0035932{col 26}{space 2} .0004321{col 37}{space 1}    8.32{col 46}{space 3}0.000{col 54}{space 4} .0027461{col 67}{space 3} .0044403
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0054696{col 26}{space 2} .0004693{col 37}{space 1}  -11.65{col 46}{space 3}0.000{col 54}{space 4}-.0063896{col 67}{space 3}-.0045495
{txt}{space 6}female {c |}{col 14}{res}{space 2} -.066356{col 26}{space 2} .0025811{col 37}{space 1}  -25.71{col 46}{space 3}0.000{col 54}{space 4}-.0714158{col 67}{space 3}-.0612963
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0326946{col 26}{space 2} .0038209{col 37}{space 1}    8.56{col 46}{space 3}0.000{col 54}{space 4} .0252044{col 67}{space 3} .0401848
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2674398{col 26}{space 2} .0336967{col 37}{space 1}    7.94{col 46}{space 3}0.000{col 54}{space 4}  .201384{col 67}{space 3} .3334955
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}    2.77
{txt}{col 13}Prob > F ={res}    0.0959

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01637872

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(High Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 3 - FDI from Low Corruption Counties

. 
. 
. 
. gen active=active50_lowcorr

. 
. gen inactive=inactive50_lowcorr

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,799
                                                {txt}F(47, 6987)       =  {res}   103.77
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0962
                                                {txt}Root MSE          =    {res} .35292

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0020585{col 26}{space 2} .0052647{col 37}{space 1}   -0.39{col 46}{space 3}0.696{col 54}{space 4}-.0123788{col 67}{space 3} .0082618
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0130477{col 26}{space 2} .0114665{col 37}{space 1}    1.14{col 46}{space 3}0.255{col 54}{space 4}-.0094302{col 67}{space 3} .0355255
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0873358{col 26}{space 2} .0251204{col 37}{space 1}   -3.48{col 46}{space 3}0.001{col 54}{space 4}-.1365795{col 67}{space 3}-.0380921
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0399038{col 26}{space 2} .0219342{col 37}{space 1}   -1.82{col 46}{space 3}0.069{col 54}{space 4}-.0829014{col 67}{space 3} .0030939
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1653493{col 26}{space 2} .0202803{col 37}{space 1}   -8.15{col 46}{space 3}0.000{col 54}{space 4}-.2051049{col 67}{space 3}-.1255937
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} -.041556{col 26}{space 2} .0213868{col 37}{space 1}   -1.94{col 46}{space 3}0.052{col 54}{space 4}-.0834805{col 67}{space 3} .0003686
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .0945738{col 26}{space 2} .0268345{col 37}{space 1}    3.52{col 46}{space 3}0.000{col 54}{space 4}   .04197{col 67}{space 3} .1471776
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1440532{col 26}{space 2} .0215996{col 37}{space 1}   -6.67{col 46}{space 3}0.000{col 54}{space 4} -.186395{col 67}{space 3}-.1017115
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0080721{col 26}{space 2} .0234532{col 37}{space 1}    0.34{col 46}{space 3}0.731{col 54}{space 4}-.0379033{col 67}{space 3} .0540475
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}  .109695{col 26}{space 2} .0318988{col 37}{space 1}    3.44{col 46}{space 3}0.001{col 54}{space 4} .0471636{col 67}{space 3} .1722264
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0214213{col 26}{space 2} .0234667{col 37}{space 1}   -0.91{col 46}{space 3}0.361{col 54}{space 4}-.0674233{col 67}{space 3} .0245806
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0279011{col 26}{space 2} .0211272{col 37}{space 1}   -1.32{col 46}{space 3}0.187{col 54}{space 4}-.0693168{col 67}{space 3} .0135145
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0332264{col 26}{space 2} .0255137{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-.0167883{col 67}{space 3}  .083241
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1861111{col 26}{space 2} .0234642{col 37}{space 1}    7.93{col 46}{space 3}0.000{col 54}{space 4} .1401141{col 67}{space 3} .2321082
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0476015{col 26}{space 2} .0234349{col 37}{space 1}   -2.03{col 46}{space 3}0.042{col 54}{space 4} -.093541{col 67}{space 3} -.001662
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1475271{col 26}{space 2}  .026901{col 37}{space 1}    5.48{col 46}{space 3}0.000{col 54}{space 4} .0947931{col 67}{space 3} .2002612
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0740487{col 26}{space 2} .0216908{col 37}{space 1}   -3.41{col 46}{space 3}0.001{col 54}{space 4}-.1165693{col 67}{space 3}-.0315282
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1157328{col 26}{space 2} .0211196{col 37}{space 1}   -5.48{col 46}{space 3}0.000{col 54}{space 4}-.1571337{col 67}{space 3}-.0743319
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0424808{col 26}{space 2} .0212504{col 37}{space 1}   -2.00{col 46}{space 3}0.046{col 54}{space 4}-.0841379{col 67}{space 3}-.0008236
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -.139913{col 26}{space 2} .0208368{col 37}{space 1}   -6.71{col 46}{space 3}0.000{col 54}{space 4}-.1807593{col 67}{space 3}-.0990666
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2129311{col 26}{space 2} .0390704{col 37}{space 1}    5.45{col 46}{space 3}0.000{col 54}{space 4} .1363414{col 67}{space 3} .2895209
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0756274{col 26}{space 2} .0227696{col 37}{space 1}    3.32{col 46}{space 3}0.001{col 54}{space 4} .0309922{col 67}{space 3} .1202627
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1264133{col 26}{space 2} .0208892{col 37}{space 1}   -6.05{col 46}{space 3}0.000{col 54}{space 4}-.1673625{col 67}{space 3}-.0854641
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0581312{col 26}{space 2} .0224153{col 37}{space 1}   -2.59{col 46}{space 3}0.010{col 54}{space 4}-.1020719{col 67}{space 3}-.0141905
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0860866{col 26}{space 2} .0230264{col 37}{space 1}    3.74{col 46}{space 3}0.000{col 54}{space 4} .0409479{col 67}{space 3} .1312253
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0578966{col 26}{space 2} .0216389{col 37}{space 1}   -2.68{col 46}{space 3}0.007{col 54}{space 4}-.1003153{col 67}{space 3}-.0154778
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1963138{col 26}{space 2} .0277843{col 37}{space 1}    7.07{col 46}{space 3}0.000{col 54}{space 4} .1418482{col 67}{space 3} .2507794
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1151237{col 26}{space 2} .0213199{col 37}{space 1}   -5.40{col 46}{space 3}0.000{col 54}{space 4}-.1569171{col 67}{space 3}-.0733303
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0524601{col 26}{space 2} .0293538{col 37}{space 1}    1.79{col 46}{space 3}0.074{col 54}{space 4}-.0050824{col 67}{space 3} .1100025
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0659506{col 26}{space 2} .0224795{col 37}{space 1}   -2.93{col 46}{space 3}0.003{col 54}{space 4}-.1100173{col 67}{space 3}-.0218839
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} -.037355{col 26}{space 2} .0267561{col 37}{space 1}   -1.40{col 46}{space 3}0.163{col 54}{space 4}-.0898051{col 67}{space 3} .0150951
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0529998{col 26}{space 2} .0215503{col 37}{space 1}   -2.46{col 46}{space 3}0.014{col 54}{space 4}-.0952449{col 67}{space 3}-.0107547
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0048895{col 26}{space 2} .0219949{col 37}{space 1}   -0.22{col 46}{space 3}0.824{col 54}{space 4}-.0480061{col 67}{space 3} .0382271
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1100254{col 26}{space 2} .0234404{col 37}{space 1}   -4.69{col 46}{space 3}0.000{col 54}{space 4}-.1559758{col 67}{space 3} -.064075
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}  .098507{col 26}{space 2} .0251542{col 37}{space 1}    3.92{col 46}{space 3}0.000{col 54}{space 4} .0491972{col 67}{space 3} .1478169
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} -.073748{col 26}{space 2} .0243259{col 37}{space 1}   -3.03{col 46}{space 3}0.002{col 54}{space 4}-.1214342{col 67}{space 3}-.0260618
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0508729{col 26}{space 2} .0236697{col 37}{space 1}    2.15{col 46}{space 3}0.032{col 54}{space 4} .0044732{col 67}{space 3} .0972727
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.0991647{col 26}{space 2} .0245728{col 37}{space 1}   -4.04{col 46}{space 3}0.000{col 54}{space 4}-.1473348{col 67}{space 3}-.0509946
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0927257{col 26}{space 2} .0254905{col 37}{space 1}   -3.64{col 46}{space 3}0.000{col 54}{space 4}-.1426949{col 67}{space 3}-.0427565
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0949352{col 26}{space 2} .0246636{col 37}{space 1}   -3.85{col 46}{space 3}0.000{col 54}{space 4}-.1432834{col 67}{space 3} -.046587
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0671708{col 26}{space 2} .0251469{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.1164664{col 67}{space 3}-.0178752
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1771166{col 26}{space 2} .0239348{col 37}{space 1}   -7.40{col 46}{space 3}0.000{col 54}{space 4} -.224036{col 67}{space 3}-.1301973
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} -.183633{col 26}{space 2} .0252168{col 37}{space 1}   -7.28{col 46}{space 3}0.000{col 54}{space 4}-.2330655{col 67}{space 3}-.1342005
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0035632{col 26}{space 2} .0004324{col 37}{space 1}    8.24{col 46}{space 3}0.000{col 54}{space 4} .0027155{col 67}{space 3} .0044109
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0054387{col 26}{space 2} .0004696{col 37}{space 1}  -11.58{col 46}{space 3}0.000{col 54}{space 4}-.0063593{col 67}{space 3}-.0045182
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0663214{col 26}{space 2} .0025804{col 37}{space 1}  -25.70{col 46}{space 3}0.000{col 54}{space 4}-.0713798{col 67}{space 3} -.061263
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0349629{col 26}{space 2} .0038451{col 37}{space 1}    9.09{col 46}{space 3}0.000{col 54}{space 4} .0274253{col 67}{space 3} .0425005
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .280516{col 26}{space 2} .0331491{col 37}{space 1}    8.46{col 46}{space 3}0.000{col 54}{space 4} .2155336{col 67}{space 3} .3454983
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}    1.61
{txt}{col 13}Prob > F ={res}    0.2045

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01510614

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(Low Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 4 - FDI from High Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_highwgb

. 
. gen inactive=inactive50_highwgb

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,799
                                                {txt}F(47, 6987)       =  {res}   103.62
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0962
                                                {txt}Root MSE          =    {res} .35292

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0037736{col 26}{space 2} .0059421{col 37}{space 1}    0.64{col 46}{space 3}0.525{col 54}{space 4}-.0078748{col 67}{space 3}  .015422
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}-.0141792{col 26}{space 2} .0140636{col 37}{space 1}   -1.01{col 46}{space 3}0.313{col 54}{space 4}-.0417481{col 67}{space 3} .0133897
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0919077{col 26}{space 2} .0251484{col 37}{space 1}   -3.65{col 46}{space 3}0.000{col 54}{space 4}-.1412061{col 67}{space 3}-.0426093
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0421668{col 26}{space 2} .0220441{col 37}{space 1}   -1.91{col 46}{space 3}0.056{col 54}{space 4}-.0853799{col 67}{space 3} .0010464
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1692968{col 26}{space 2} .0203204{col 37}{space 1}   -8.33{col 46}{space 3}0.000{col 54}{space 4}-.2091309{col 67}{space 3}-.1294627
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0451086{col 26}{space 2} .0215243{col 37}{space 1}   -2.10{col 46}{space 3}0.036{col 54}{space 4}-.0873027{col 67}{space 3}-.0029144
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .0916051{col 26}{space 2} .0269067{col 37}{space 1}    3.40{col 46}{space 3}0.001{col 54}{space 4} .0388599{col 67}{space 3} .1443504
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1477652{col 26}{space 2} .0217616{col 37}{space 1}   -6.79{col 46}{space 3}0.000{col 54}{space 4}-.1904245{col 67}{space 3}-.1051059
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0048722{col 26}{space 2}  .023444{col 37}{space 1}    0.21{col 46}{space 3}0.835{col 54}{space 4} -.041085{col 67}{space 3} .0508295
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1047687{col 26}{space 2} .0317272{col 37}{space 1}    3.30{col 46}{space 3}0.001{col 54}{space 4} .0425738{col 67}{space 3} .1669636
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0238398{col 26}{space 2} .0235506{col 37}{space 1}   -1.01{col 46}{space 3}0.311{col 54}{space 4}-.0700062{col 67}{space 3} .0223266
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0321656{col 26}{space 2} .0211392{col 37}{space 1}   -1.52{col 46}{space 3}0.128{col 54}{space 4}-.0736049{col 67}{space 3} .0092737
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}  .030584{col 26}{space 2} .0255654{col 37}{space 1}    1.20{col 46}{space 3}0.232{col 54}{space 4}-.0195319{col 67}{space 3} .0806999
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1834573{col 26}{space 2} .0231079{col 37}{space 1}    7.94{col 46}{space 3}0.000{col 54}{space 4} .1381589{col 67}{space 3} .2287557
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0512867{col 26}{space 2} .0235486{col 37}{space 1}   -2.18{col 46}{space 3}0.029{col 54}{space 4}-.0974491{col 67}{space 3}-.0051243
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1438542{col 26}{space 2} .0270621{col 37}{space 1}    5.32{col 46}{space 3}0.000{col 54}{space 4} .0908042{col 67}{space 3} .1969042
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0765307{col 26}{space 2} .0216471{col 37}{space 1}   -3.54{col 46}{space 3}0.000{col 54}{space 4}-.1189656{col 67}{space 3}-.0340958
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1200948{col 26}{space 2} .0210972{col 37}{space 1}   -5.69{col 46}{space 3}0.000{col 54}{space 4}-.1614517{col 67}{space 3} -.078738
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0461485{col 26}{space 2} .0213697{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4}-.0880397{col 67}{space 3}-.0042573
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1465138{col 26}{space 2}  .020354{col 37}{space 1}   -7.20{col 46}{space 3}0.000{col 54}{space 4}-.1864139{col 67}{space 3}-.1066138
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2094649{col 26}{space 2} .0388143{col 37}{space 1}    5.40{col 46}{space 3}0.000{col 54}{space 4}  .133377{col 67}{space 3} .2855528
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0724563{col 26}{space 2} .0228413{col 37}{space 1}    3.17{col 46}{space 3}0.002{col 54}{space 4} .0276804{col 67}{space 3} .1172322
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1295102{col 26}{space 2} .0209286{col 37}{space 1}   -6.19{col 46}{space 3}0.000{col 54}{space 4}-.1705365{col 67}{space 3}-.0884838
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0601214{col 26}{space 2} .0225227{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.1042727{col 67}{space 3}-.0159702
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0826556{col 26}{space 2} .0229585{col 37}{space 1}    3.60{col 46}{space 3}0.000{col 54}{space 4} .0376499{col 67}{space 3} .1276612
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0608024{col 26}{space 2} .0214742{col 37}{space 1}   -2.83{col 46}{space 3}0.005{col 54}{space 4}-.1028984{col 67}{space 3}-.0187064
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1925922{col 26}{space 2} .0279102{col 37}{space 1}    6.90{col 46}{space 3}0.000{col 54}{space 4} .1378797{col 67}{space 3} .2473047
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1201014{col 26}{space 2} .0213014{col 37}{space 1}   -5.64{col 46}{space 3}0.000{col 54}{space 4}-.1618586{col 67}{space 3}-.0783442
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0499358{col 26}{space 2} .0293887{col 37}{space 1}    1.70{col 46}{space 3}0.089{col 54}{space 4}-.0076749{col 67}{space 3} .1075465
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0696992{col 26}{space 2} .0224827{col 37}{space 1}   -3.10{col 46}{space 3}0.002{col 54}{space 4}-.1137722{col 67}{space 3}-.0256262
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} -.039671{col 26}{space 2} .0268072{col 37}{space 1}   -1.48{col 46}{space 3}0.139{col 54}{space 4}-.0922212{col 67}{space 3} .0128792
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0565216{col 26}{space 2} .0215258{col 37}{space 1}   -2.63{col 46}{space 3}0.009{col 54}{space 4}-.0987188{col 67}{space 3}-.0143245
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0079173{col 26}{space 2} .0220271{col 37}{space 1}   -0.36{col 46}{space 3}0.719{col 54}{space 4} -.051097{col 67}{space 3} .0352625
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1157572{col 26}{space 2} .0232091{col 37}{space 1}   -4.99{col 46}{space 3}0.000{col 54}{space 4}-.1612542{col 67}{space 3}-.0702603
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0937838{col 26}{space 2}   .02522{col 37}{space 1}    3.72{col 46}{space 3}0.000{col 54}{space 4} .0443448{col 67}{space 3} .1432227
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0774234{col 26}{space 2} .0242458{col 37}{space 1}   -3.19{col 46}{space 3}0.001{col 54}{space 4}-.1249526{col 67}{space 3}-.0298942
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0476333{col 26}{space 2} .0236553{col 37}{space 1}    2.01{col 46}{space 3}0.044{col 54}{space 4} .0012618{col 67}{space 3} .0940049
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.0975614{col 26}{space 2} .0244362{col 37}{space 1}   -3.99{col 46}{space 3}0.000{col 54}{space 4}-.1454638{col 67}{space 3}-.0496591
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2} -.091654{col 26}{space 2}  .025333{col 37}{space 1}   -3.62{col 46}{space 3}0.000{col 54}{space 4}-.1413144{col 67}{space 3}-.0419937
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0942911{col 26}{space 2} .0245461{col 37}{space 1}   -3.84{col 46}{space 3}0.000{col 54}{space 4}-.1424088{col 67}{space 3}-.0461733
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}  -.06749{col 26}{space 2} .0250361{col 37}{space 1}   -2.70{col 46}{space 3}0.007{col 54}{space 4}-.1165683{col 67}{space 3}-.0184116
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1772768{col 26}{space 2}  .023821{col 37}{space 1}   -7.44{col 46}{space 3}0.000{col 54}{space 4}-.2239732{col 67}{space 3}-.1305805
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1840537{col 26}{space 2} .0251041{col 37}{space 1}   -7.33{col 46}{space 3}0.000{col 54}{space 4}-.2332653{col 67}{space 3}-.1348421
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0035597{col 26}{space 2} .0004321{col 37}{space 1}    8.24{col 46}{space 3}0.000{col 54}{space 4} .0027127{col 67}{space 3} .0044067
{txt}{space 8}age2 {c |}{col 14}{res}{space 2} -.005433{col 26}{space 2} .0004692{col 37}{space 1}  -11.58{col 46}{space 3}0.000{col 54}{space 4}-.0063528{col 67}{space 3}-.0045132
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0663208{col 26}{space 2} .0025807{col 37}{space 1}  -25.70{col 46}{space 3}0.000{col 54}{space 4}-.0713798{col 67}{space 3}-.0612618
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0343977{col 26}{space 2}  .003764{col 37}{space 1}    9.14{col 46}{space 3}0.000{col 54}{space 4} .0270192{col 67}{space 3} .0417762
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2836573{col 26}{space 2} .0330243{col 37}{space 1}    8.59{col 46}{space 3}0.000{col 54}{space 4} .2189196{col 67}{space 3}  .348395
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}    1.48
{txt}{col 13}Prob > F ={res}    0.2236

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.01795283

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(High ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 5 - FDI from Low Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_lowwgb

. 
. gen inactive=inactive50_lowwgb

. 
. reg bribe_d active inactive cd* yd*  age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,799
                                                {txt}F(47, 6987)       =  {res}   105.51
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0967
                                                {txt}Root MSE          =    {res} .35283

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0053786{col 26}{space 2} .0041383{col 37}{space 1}    1.30{col 46}{space 3}0.194{col 54}{space 4}-.0027338{col 67}{space 3} .0134909
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0335239{col 26}{space 2} .0080548{col 37}{space 1}    4.16{col 46}{space 3}0.000{col 54}{space 4}  .017734{col 67}{space 3} .0493138
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0866614{col 26}{space 2} .0250177{col 37}{space 1}   -3.46{col 46}{space 3}0.001{col 54}{space 4}-.1357037{col 67}{space 3} -.037619
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0401781{col 26}{space 2} .0218047{col 37}{space 1}   -1.84{col 46}{space 3}0.065{col 54}{space 4} -.082922{col 67}{space 3} .0025658
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1637583{col 26}{space 2} .0201688{col 37}{space 1}   -8.12{col 46}{space 3}0.000{col 54}{space 4}-.2032952{col 67}{space 3}-.1242214
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0413485{col 26}{space 2} .0213595{col 37}{space 1}   -1.94{col 46}{space 3}0.053{col 54}{space 4}-.0832196{col 67}{space 3} .0005225
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2}   .09494{col 26}{space 2} .0266219{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4} .0427529{col 67}{space 3} .1471271
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.1490956{col 26}{space 2} .0214466{col 37}{space 1}   -6.95{col 46}{space 3}0.000{col 54}{space 4}-.1911375{col 67}{space 3}-.1070537
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0074154{col 26}{space 2}  .023409{col 37}{space 1}    0.32{col 46}{space 3}0.751{col 54}{space 4}-.0384733{col 67}{space 3} .0533042
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}  .109385{col 26}{space 2} .0316289{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0473827{col 67}{space 3} .1713873
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0203663{col 26}{space 2} .0232674{col 37}{space 1}   -0.88{col 46}{space 3}0.381{col 54}{space 4}-.0659775{col 67}{space 3} .0252448
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0273206{col 26}{space 2} .0209872{col 37}{space 1}   -1.30{col 46}{space 3}0.193{col 54}{space 4} -.068462{col 67}{space 3} .0138207
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .0353901{col 26}{space 2} .0254326{col 37}{space 1}    1.39{col 46}{space 3}0.164{col 54}{space 4}-.0144656{col 67}{space 3} .0852458
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1849478{col 26}{space 2} .0231596{col 37}{space 1}    7.99{col 46}{space 3}0.000{col 54}{space 4}  .139548{col 67}{space 3} .2303476
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0441075{col 26}{space 2} .0234056{col 37}{space 1}   -1.88{col 46}{space 3}0.060{col 54}{space 4}-.0899896{col 67}{space 3} .0017745
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .1379647{col 26}{space 2} .0261872{col 37}{space 1}    5.27{col 46}{space 3}0.000{col 54}{space 4} .0866299{col 67}{space 3} .1892995
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.0742341{col 26}{space 2} .0215587{col 37}{space 1}   -3.44{col 46}{space 3}0.001{col 54}{space 4}-.1164958{col 67}{space 3}-.0319724
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1221909{col 26}{space 2} .0210282{col 37}{space 1}   -5.81{col 46}{space 3}0.000{col 54}{space 4}-.1634126{col 67}{space 3}-.0809691
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0419798{col 26}{space 2} .0211313{col 37}{space 1}   -1.99{col 46}{space 3}0.047{col 54}{space 4}-.0834037{col 67}{space 3}-.0005559
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1416908{col 26}{space 2}  .020204{col 37}{space 1}   -7.01{col 46}{space 3}0.000{col 54}{space 4}-.1812967{col 67}{space 3}-.1020849
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2116533{col 26}{space 2} .0389157{col 37}{space 1}    5.44{col 46}{space 3}0.000{col 54}{space 4} .1353666{col 67}{space 3}   .28794
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0753863{col 26}{space 2} .0226616{col 37}{space 1}    3.33{col 46}{space 3}0.001{col 54}{space 4} .0309626{col 67}{space 3} .1198099
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1273279{col 26}{space 2} .0208617{col 37}{space 1}   -6.10{col 46}{space 3}0.000{col 54}{space 4}-.1682232{col 67}{space 3}-.0864327
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.0565207{col 26}{space 2} .0223333{col 37}{space 1}   -2.53{col 46}{space 3}0.011{col 54}{space 4}-.1003008{col 67}{space 3}-.0127407
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0868871{col 26}{space 2} .0229072{col 37}{space 1}    3.79{col 46}{space 3}0.000{col 54}{space 4}  .041982{col 67}{space 3} .1317921
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0571717{col 26}{space 2} .0214232{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.0991676{col 67}{space 3}-.0151757
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1981587{col 26}{space 2} .0277806{col 37}{space 1}    7.13{col 46}{space 3}0.000{col 54}{space 4} .1437003{col 67}{space 3} .2526171
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1145548{col 26}{space 2} .0210751{col 37}{space 1}   -5.44{col 46}{space 3}0.000{col 54}{space 4}-.1558684{col 67}{space 3}-.0732413
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0546837{col 26}{space 2} .0291586{col 37}{space 1}    1.88{col 46}{space 3}0.061{col 54}{space 4}-.0024759{col 67}{space 3} .1118434
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0648393{col 26}{space 2} .0223734{col 37}{space 1}   -2.90{col 46}{space 3}0.004{col 54}{space 4}-.1086981{col 67}{space 3}-.0209806
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.0332105{col 26}{space 2} .0267135{col 37}{space 1}   -1.24{col 46}{space 3}0.214{col 54}{space 4}-.0855771{col 67}{space 3} .0191561
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.0541289{col 26}{space 2} .0214727{col 37}{space 1}   -2.52{col 46}{space 3}0.012{col 54}{space 4} -.096222{col 67}{space 3}-.0120358
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0065252{col 26}{space 2} .0220044{col 37}{space 1}   -0.30{col 46}{space 3}0.767{col 54}{space 4}-.0496605{col 67}{space 3} .0366101
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1103647{col 26}{space 2} .0230171{col 37}{space 1}   -4.79{col 46}{space 3}0.000{col 54}{space 4}-.1554852{col 67}{space 3}-.0652441
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0967586{col 26}{space 2} .0249646{col 37}{space 1}    3.88{col 46}{space 3}0.000{col 54}{space 4} .0478203{col 67}{space 3} .1456968
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0726274{col 26}{space 2} .0243262{col 37}{space 1}   -2.99{col 46}{space 3}0.003{col 54}{space 4}-.1203141{col 67}{space 3}-.0249407
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .0494898{col 26}{space 2} .0237236{col 37}{space 1}    2.09{col 46}{space 3}0.037{col 54}{space 4} .0029843{col 67}{space 3} .0959953
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.1008269{col 26}{space 2} .0247736{col 37}{space 1}   -4.07{col 46}{space 3}0.000{col 54}{space 4}-.1493907{col 67}{space 3}-.0522632
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0922312{col 26}{space 2} .0256392{col 37}{space 1}   -3.60{col 46}{space 3}0.000{col 54}{space 4}-.1424918{col 67}{space 3}-.0419706
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0948837{col 26}{space 2} .0248641{col 37}{space 1}   -3.82{col 46}{space 3}0.000{col 54}{space 4} -.143625{col 67}{space 3}-.0461425
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} -.067426{col 26}{space 2} .0253314{col 37}{space 1}   -2.66{col 46}{space 3}0.008{col 54}{space 4}-.1170832{col 67}{space 3}-.0177688
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} -.176463{col 26}{space 2}  .024086{col 37}{space 1}   -7.33{col 46}{space 3}0.000{col 54}{space 4}-.2236789{col 67}{space 3}-.1292471
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1840391{col 26}{space 2} .0253786{col 37}{space 1}   -7.25{col 46}{space 3}0.000{col 54}{space 4}-.2337889{col 67}{space 3}-.1342893
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0035647{col 26}{space 2} .0004323{col 37}{space 1}    8.25{col 46}{space 3}0.000{col 54}{space 4} .0027172{col 67}{space 3} .0044121
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0054376{col 26}{space 2} .0004695{col 37}{space 1}  -11.58{col 46}{space 3}0.000{col 54}{space 4} -.006358{col 67}{space 3}-.0045172
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0663414{col 26}{space 2} .0025812{col 37}{space 1}  -25.70{col 46}{space 3}0.000{col 54}{space 4}-.0714013{col 67}{space 3}-.0612815
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0328369{col 26}{space 2} .0038978{col 37}{space 1}    8.42{col 46}{space 3}0.000{col 54}{space 4} .0251959{col 67}{space 3} .0404778
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2780913{col 26}{space 2} .0333014{col 37}{space 1}    8.35{col 46}{space 3}0.000{col 54}{space 4} .2128104{col 67}{space 3} .3433721
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}   10.77
{txt}{col 13}Prob > F ={res}    0.0010

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.02814534

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(Low ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 6 - Often Without Cash

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. reg often_without_cash active inactive cd* yd* age age2 working female urban if year>2007, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd8 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,138
                                                {txt}F(48, 6987)       =  {res}   403.41
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2434
                                                {txt}Root MSE          =    {res} .42294

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0219294{col 26}{space 2} .0066575{col 37}{space 1}   -3.29{col 46}{space 3}0.001{col 54}{space 4}-.0349801{col 67}{space 3}-.0088786
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0065691{col 26}{space 2} .0084421{col 37}{space 1}    0.78{col 46}{space 3}0.437{col 54}{space 4}-.0099799{col 67}{space 3} .0231181
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.2180612{col 26}{space 2} .0311078{col 37}{space 1}   -7.01{col 46}{space 3}0.000{col 54}{space 4}-.2790419{col 67}{space 3}-.1570806
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .4872462{col 26}{space 2} .0313158{col 37}{space 1}   15.56{col 46}{space 3}0.000{col 54}{space 4} .4258577{col 67}{space 3} .5486348
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} .2591967{col 26}{space 2} .0390138{col 37}{space 1}    6.64{col 46}{space 3}0.000{col 54}{space 4} .1827178{col 67}{space 3} .3356755
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} .5105582{col 26}{space 2}  .030362{col 37}{space 1}   16.82{col 46}{space 3}0.000{col 54}{space 4} .4510393{col 67}{space 3}  .570077
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} .5358371{col 26}{space 2} .0324392{col 37}{space 1}   16.52{col 46}{space 3}0.000{col 54}{space 4} .4722465{col 67}{space 3} .5994278
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .4396362{col 26}{space 2} .0340888{col 37}{space 1}   12.90{col 46}{space 3}0.000{col 54}{space 4} .3728119{col 67}{space 3} .5064606
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .0332505{col 26}{space 2} .0363167{col 37}{space 1}    0.92{col 46}{space 3}0.360{col 54}{space 4}-.0379413{col 67}{space 3} .1044423
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}  .486973{col 26}{space 2}  .031042{col 37}{space 1}   15.69{col 46}{space 3}0.000{col 54}{space 4} .4261213{col 67}{space 3} .5478248
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1099034{col 26}{space 2} .0355523{col 37}{space 1}   -3.09{col 46}{space 3}0.002{col 54}{space 4}-.1795967{col 67}{space 3}  -.04021
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .5962154{col 26}{space 2} .0329112{col 37}{space 1}   18.12{col 46}{space 3}0.000{col 54}{space 4} .5316995{col 67}{space 3} .6607313
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1017667{col 26}{space 2} .0319868{col 37}{space 1}    3.18{col 46}{space 3}0.001{col 54}{space 4} .0390628{col 67}{space 3} .1644706
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .5211047{col 26}{space 2}  .030591{col 37}{space 1}   17.03{col 46}{space 3}0.000{col 54}{space 4}  .461137{col 67}{space 3} .5810724
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .3243497{col 26}{space 2} .0327033{col 37}{space 1}    9.92{col 46}{space 3}0.000{col 54}{space 4} .2602414{col 67}{space 3}  .388458
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .4309022{col 26}{space 2} .0332712{col 37}{space 1}   12.95{col 46}{space 3}0.000{col 54}{space 4} .3656805{col 67}{space 3} .4961238
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .2027632{col 26}{space 2} .0360568{col 37}{space 1}    5.62{col 46}{space 3}0.000{col 54}{space 4}  .132081{col 67}{space 3} .2734454
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .4530699{col 26}{space 2}  .031071{col 37}{space 1}   14.58{col 46}{space 3}0.000{col 54}{space 4} .3921613{col 67}{space 3} .5139785
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .4129081{col 26}{space 2} .0330964{col 37}{space 1}   12.48{col 46}{space 3}0.000{col 54}{space 4} .3480291{col 67}{space 3} .4777871
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .4599503{col 26}{space 2} .0314388{col 37}{space 1}   14.63{col 46}{space 3}0.000{col 54}{space 4} .3983207{col 67}{space 3} .5215799
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.2332362{col 26}{space 2} .0314734{col 37}{space 1}   -7.41{col 46}{space 3}0.000{col 54}{space 4}-.2949336{col 67}{space 3}-.1715387
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2} .2593526{col 26}{space 2} .0318993{col 37}{space 1}    8.13{col 46}{space 3}0.000{col 54}{space 4} .1968202{col 67}{space 3}  .321885
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .2433554{col 26}{space 2} .0334273{col 37}{space 1}    7.28{col 46}{space 3}0.000{col 54}{space 4} .1778278{col 67}{space 3}  .308883
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .4795801{col 26}{space 2} .0301315{col 37}{space 1}   15.92{col 46}{space 3}0.000{col 54}{space 4} .4205133{col 67}{space 3} .5386469
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1885889{col 26}{space 2} .0326185{col 37}{space 1}    5.78{col 46}{space 3}0.000{col 54}{space 4} .1246467{col 67}{space 3} .2525311
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}  .535851{col 26}{space 2} .0299052{col 37}{space 1}   17.92{col 46}{space 3}0.000{col 54}{space 4} .4772277{col 67}{space 3} .5944744
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .3030188{col 26}{space 2} .0354974{col 37}{space 1}    8.54{col 46}{space 3}0.000{col 54}{space 4} .2334332{col 67}{space 3} .3726044
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}  .012243{col 26}{space 2} .0306728{col 37}{space 1}    0.40{col 46}{space 3}0.690{col 54}{space 4}-.0478849{col 67}{space 3}  .072371
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0929594{col 26}{space 2} .0478007{col 37}{space 1}    1.94{col 46}{space 3}0.052{col 54}{space 4}-.0007445{col 67}{space 3} .1866632
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .1921467{col 26}{space 2} .0386839{col 37}{space 1}    4.97{col 46}{space 3}0.000{col 54}{space 4} .1163144{col 67}{space 3}  .267979
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .2536123{col 26}{space 2} .0405574{col 37}{space 1}    6.25{col 46}{space 3}0.000{col 54}{space 4} .1741074{col 67}{space 3} .3331172
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .3350171{col 26}{space 2} .0330389{col 37}{space 1}   10.14{col 46}{space 3}0.000{col 54}{space 4} .2702509{col 67}{space 3} .3997833
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .5810364{col 26}{space 2} .0310831{col 37}{space 1}   18.69{col 46}{space 3}0.000{col 54}{space 4} .5201042{col 67}{space 3} .6419687
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0559971{col 26}{space 2} .0337702{col 37}{space 1}   -1.66{col 46}{space 3}0.097{col 54}{space 4} -.122197{col 67}{space 3} .0102028
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .3412263{col 26}{space 2} .0335591{col 37}{space 1}   10.17{col 46}{space 3}0.000{col 54}{space 4} .2754402{col 67}{space 3} .4070123
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} .2793667{col 26}{space 2} .0348361{col 37}{space 1}    8.02{col 46}{space 3}0.000{col 54}{space 4} .2110774{col 67}{space 3}  .347656
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .3870928{col 26}{space 2} .0343753{col 37}{space 1}   11.26{col 46}{space 3}0.000{col 54}{space 4} .3197068{col 67}{space 3} .4544787
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.0262429{col 26}{space 2} .0116683{col 37}{space 1}   -2.25{col 46}{space 3}0.025{col 54}{space 4}-.0491164{col 67}{space 3}-.0033694
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0977912{col 26}{space 2} .0251212{col 37}{space 1}    3.89{col 46}{space 3}0.000{col 54}{space 4}  .048546{col 67}{space 3} .1470365
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd9 {c |}{col 14}{res}{space 2}-.0048567{col 26}{space 2} .0129113{col 37}{space 1}   -0.38{col 46}{space 3}0.707{col 54}{space 4}-.0301667{col 67}{space 3} .0204534
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}  .020287{col 26}{space 2} .0142288{col 37}{space 1}    1.43{col 46}{space 3}0.154{col 54}{space 4}-.0076058{col 67}{space 3} .0481799
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0509953{col 26}{space 2} .0124503{col 37}{space 1}   -4.10{col 46}{space 3}0.000{col 54}{space 4}-.0754017{col 67}{space 3} -.026589
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} -.011679{col 26}{space 2} .0128125{col 37}{space 1}   -0.91{col 46}{space 3}0.362{col 54}{space 4}-.0367953{col 67}{space 3} .0134373
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0060702{col 26}{space 2} .0005961{col 37}{space 1}   10.18{col 46}{space 3}0.000{col 54}{space 4} .0049017{col 67}{space 3} .0072386
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0060933{col 26}{space 2} .0006587{col 37}{space 1}   -9.25{col 46}{space 3}0.000{col 54}{space 4}-.0073845{col 67}{space 3}-.0048021
{txt}{space 5}working {c |}{col 14}{res}{space 2}-.0784272{col 26}{space 2} .0041878{col 37}{space 1}  -18.73{col 46}{space 3}0.000{col 54}{space 4}-.0866365{col 67}{space 3}-.0702178
{txt}{space 6}female {c |}{col 14}{res}{space 2} .0038523{col 26}{space 2} .0028518{col 37}{space 1}    1.35{col 46}{space 3}0.177{col 54}{space 4} -.001738{col 67}{space 3} .0094426
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.0941633{col 26}{space 2} .0053083{col 37}{space 1}  -17.74{col 46}{space 3}0.000{col 54}{space 4}-.1045692{col 67}{space 3}-.0837574
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3110556{col 26}{space 2} .0336656{col 37}{space 1}    9.24{col 46}{space 3}0.000{col 54}{space 4} .2450607{col 67}{space 3} .3770505
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}    9.57
{txt}{col 13}Prob > F ={res}    0.0020

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.02849851

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(DV Without Cash) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. 
. 
. *Model 7 - Working

. 
. reg working active inactive cd* yd* age age2 female urban if year>2007, cl(cluster)
{txt}note: cd5 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd4 omitted because of collinearity
note: yd5 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    73,465
                                                {txt}F(47, 6987)       =  {res}   228.06
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1540
                                                {txt}Root MSE          =    {res} .44462

{txt}{ralign 78:(Std. Err. adjusted for {res:6,988} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0440092{col 26}{space 2} .0060695{col 37}{space 1}    7.25{col 46}{space 3}0.000{col 54}{space 4} .0321112{col 67}{space 3} .0559072
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}-.0140112{col 26}{space 2}  .009167{col 37}{space 1}   -1.53{col 46}{space 3}0.126{col 54}{space 4}-.0319812{col 67}{space 3} .0039588
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2} .1973504{col 26}{space 2} .0263145{col 37}{space 1}    7.50{col 46}{space 3}0.000{col 54}{space 4}  .145766{col 67}{space 3} .2489347
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .0148675{col 26}{space 2} .0244014{col 37}{space 1}    0.61{col 46}{space 3}0.542{col 54}{space 4}-.0329665{col 67}{space 3} .0627016
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} .1238173{col 26}{space 2} .0265455{col 37}{space 1}    4.66{col 46}{space 3}0.000{col 54}{space 4}   .07178{col 67}{space 3} .1758545
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} .0021845{col 26}{space 2} .0242871{col 37}{space 1}    0.09{col 46}{space 3}0.928{col 54}{space 4}-.0454257{col 67}{space 3} .0497946
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}cd6 {c |}{col 14}{res}{space 2} .1714324{col 26}{space 2} .0282118{col 37}{space 1}    6.08{col 46}{space 3}0.000{col 54}{space 4} .1161287{col 67}{space 3}  .226736
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .2001548{col 26}{space 2} .0255132{col 37}{space 1}    7.85{col 46}{space 3}0.000{col 54}{space 4} .1501412{col 67}{space 3} .2501684
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0486127{col 26}{space 2} .0268745{col 37}{space 1}    1.81{col 46}{space 3}0.071{col 54}{space 4}-.0040695{col 67}{space 3} .1012949
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .2695618{col 26}{space 2} .0275916{col 37}{space 1}    9.77{col 46}{space 3}0.000{col 54}{space 4} .2154738{col 67}{space 3} .3236498
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .0817711{col 26}{space 2} .0299431{col 37}{space 1}    2.73{col 46}{space 3}0.006{col 54}{space 4} .0230736{col 67}{space 3} .1404687
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .3794191{col 26}{space 2} .0240512{col 37}{space 1}   15.78{col 46}{space 3}0.000{col 54}{space 4} .3322714{col 67}{space 3} .4265668
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} -.016742{col 26}{space 2}  .026628{col 37}{space 1}   -0.63{col 46}{space 3}0.530{col 54}{space 4} -.068941{col 67}{space 3}  .035457
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .3419616{col 26}{space 2} .0252189{col 37}{space 1}   13.56{col 46}{space 3}0.000{col 54}{space 4} .2925248{col 67}{space 3} .3913984
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}  .044152{col 26}{space 2} .0263945{col 37}{space 1}    1.67{col 46}{space 3}0.094{col 54}{space 4}-.0075893{col 67}{space 3} .0958933
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .0890588{col 26}{space 2} .0260542{col 37}{space 1}    3.42{col 46}{space 3}0.001{col 54}{space 4} .0379846{col 67}{space 3}  .140133
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .3200877{col 26}{space 2} .0292221{col 37}{space 1}   10.95{col 46}{space 3}0.000{col 54}{space 4} .2628036{col 67}{space 3} .3773718
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .2419395{col 26}{space 2} .0283058{col 37}{space 1}    8.55{col 46}{space 3}0.000{col 54}{space 4} .1864516{col 67}{space 3} .2974275
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .0108512{col 26}{space 2} .0237587{col 37}{space 1}    0.46{col 46}{space 3}0.648{col 54}{space 4}-.0357232{col 67}{space 3} .0574255
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} .4428616{col 26}{space 2} .0251176{col 37}{space 1}   17.63{col 46}{space 3}0.000{col 54}{space 4} .3936235{col 67}{space 3} .4920997
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .2670324{col 26}{space 2} .0362497{col 37}{space 1}    7.37{col 46}{space 3}0.000{col 54}{space 4}  .195972{col 67}{space 3} .3380928
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .1449126{col 26}{space 2} .0242214{col 37}{space 1}    5.98{col 46}{space 3}0.000{col 54}{space 4} .0974314{col 67}{space 3} .1923938
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .2286713{col 26}{space 2} .0249011{col 37}{space 1}    9.18{col 46}{space 3}0.000{col 54}{space 4} .1798576{col 67}{space 3} .2774849
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .0140454{col 26}{space 2} .0256246{col 37}{space 1}    0.55{col 46}{space 3}0.584{col 54}{space 4}-.0361865{col 67}{space 3} .0642773
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .3302607{col 26}{space 2} .0249932{col 37}{space 1}   13.21{col 46}{space 3}0.000{col 54}{space 4} .2812664{col 67}{space 3}  .379255
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .1060061{col 26}{space 2} .0241475{col 37}{space 1}    4.39{col 46}{space 3}0.000{col 54}{space 4} .0586697{col 67}{space 3} .1533426
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}  .124885{col 26}{space 2} .0295306{col 37}{space 1}    4.23{col 46}{space 3}0.000{col 54}{space 4}  .066996{col 67}{space 3}  .182774
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}  .265894{col 26}{space 2} .0241975{col 37}{space 1}   10.99{col 46}{space 3}0.000{col 54}{space 4} .2184595{col 67}{space 3} .3133285
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .2566597{col 26}{space 2}  .029767{col 37}{space 1}    8.62{col 46}{space 3}0.000{col 54}{space 4} .1983073{col 67}{space 3} .3150122
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .1708131{col 26}{space 2} .0330042{col 37}{space 1}    5.18{col 46}{space 3}0.000{col 54}{space 4} .1061149{col 67}{space 3} .2355113
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .2869343{col 26}{space 2}  .032401{col 37}{space 1}    8.86{col 46}{space 3}0.000{col 54}{space 4} .2234184{col 67}{space 3} .3504502
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .3769291{col 26}{space 2}  .028488{col 37}{space 1}   13.23{col 46}{space 3}0.000{col 54}{space 4} .3210839{col 67}{space 3} .4327742
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .0634489{col 26}{space 2} .0271932{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4}  .010142{col 67}{space 3} .1167557
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} .1887785{col 26}{space 2} .0284902{col 37}{space 1}    6.63{col 46}{space 3}0.000{col 54}{space 4}  .132929{col 67}{space 3}  .244628
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .3142324{col 26}{space 2} .0303345{col 37}{space 1}   10.36{col 46}{space 3}0.000{col 54}{space 4} .2547676{col 67}{space 3} .3736971
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} .0779037{col 26}{space 2} .0269765{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0250217{col 67}{space 3} .1307858
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .1426142{col 26}{space 2} .0261405{col 37}{space 1}    5.46{col 46}{space 3}0.000{col 54}{space 4} .0913709{col 67}{space 3} .1938575
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2} .0341465{col 26}{space 2} .0209569{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4}-.0069354{col 67}{space 3} .0752283
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0239056{col 26}{space 2}  .022464{col 37}{space 1}   -1.06{col 46}{space 3}0.287{col 54}{space 4}-.0679418{col 67}{space 3} .0201307
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}  .016564{col 26}{space 2} .0208313{col 37}{space 1}    0.80{col 46}{space 3}0.427{col 54}{space 4}-.0242717{col 67}{space 3} .0573997
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} -.005673{col 26}{space 2} .0215212{col 37}{space 1}   -0.26{col 46}{space 3}0.792{col 54}{space 4}-.0478611{col 67}{space 3}  .036515
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}   .08489{col 26}{space 2} .0199512{col 37}{space 1}    4.25{col 46}{space 3}0.000{col 54}{space 4} .0457796{col 67}{space 3} .1240003
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} .0507255{col 26}{space 2} .0215882{col 37}{space 1}    2.35{col 46}{space 3}0.019{col 54}{space 4}  .008406{col 67}{space 3} .0930449
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0331905{col 26}{space 2} .0007142{col 37}{space 1}   46.48{col 46}{space 3}0.000{col 54}{space 4} .0317906{col 67}{space 3} .0345905
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0382572{col 26}{space 2} .0007946{col 37}{space 1}  -48.15{col 46}{space 3}0.000{col 54}{space 4}-.0398149{col 67}{space 3}-.0366995
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1309202{col 26}{space 2} .0032703{col 37}{space 1}  -40.03{col 46}{space 3}0.000{col 54}{space 4} -.137331{col 67}{space 3}-.1245095
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0730288{col 26}{space 2} .0051824{col 37}{space 1}   14.09{col 46}{space 3}0.000{col 54}{space 4} .0628696{col 67}{space 3} .0831879
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.4661429{col 26}{space 2} .0331631{col 37}{space 1}  -14.06{col 46}{space 3}0.000{col 54}{space 4}-.5311526{col 67}{space 3}-.4011332
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  6987) ={res}   36.43
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.05802042

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A1.doc, append dec(3) ctitle(DV Working) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A1.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *** Table A2 Robustness Checks - "Lagged" FDI

. 
. 
. 
. *Model 1 - All FDI L1

. 
. gen active=active_binaryl1

. 
. gen inactive=inactive_50

. 
. reg bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   127.62
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0936
                                                {txt}Root MSE          =    {res} .35849

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0114215{col 26}{space 2} .0042118{col 37}{space 1}    2.71{col 46}{space 3}0.007{col 54}{space 4} .0031654{col 67}{space 3} .0196776
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0231318{col 26}{space 2} .0050976{col 37}{space 1}    4.54{col 46}{space 3}0.000{col 54}{space 4} .0131393{col 67}{space 3} .0331242
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2} -.302066{col 26}{space 2} .0357821{col 37}{space 1}   -8.44{col 46}{space 3}0.000{col 54}{space 4}-.3722073{col 67}{space 3}-.2319247
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.2378432{col 26}{space 2} .0345293{col 37}{space 1}   -6.89{col 46}{space 3}0.000{col 54}{space 4}-.3055287{col 67}{space 3}-.1701577
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.3844178{col 26}{space 2} .0336717{col 37}{space 1}  -11.42{col 46}{space 3}0.000{col 54}{space 4}-.4504223{col 67}{space 3}-.3184134
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2528112{col 26}{space 2} .0340307{col 37}{space 1}   -7.43{col 46}{space 3}0.000{col 54}{space 4}-.3195193{col 67}{space 3}-.1861031
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2172271{col 26}{space 2} .0392669{col 37}{space 1}   -5.53{col 46}{space 3}0.000{col 54}{space 4}-.2941994{col 67}{space 3}-.1402549
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.1167965{col 26}{space 2} .0372903{col 37}{space 1}   -3.13{col 46}{space 3}0.002{col 54}{space 4}-.1898942{col 67}{space 3}-.0436987
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.3704299{col 26}{space 2} .0339107{col 37}{space 1}  -10.92{col 46}{space 3}0.000{col 54}{space 4}-.4369029{col 67}{space 3}-.3039569
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.1985668{col 26}{space 2} .0353876{col 37}{space 1}   -5.61{col 46}{space 3}0.000{col 54}{space 4}-.2679349{col 67}{space 3}-.1291988
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1072442{col 26}{space 2} .0405558{col 37}{space 1}   -2.64{col 46}{space 3}0.008{col 54}{space 4}-.1867431{col 67}{space 3}-.0277454
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.2374935{col 26}{space 2} .0343709{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.3048685{col 67}{space 3}-.1701185
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.2274353{col 26}{space 2} .0340555{col 37}{space 1}   -6.68{col 46}{space 3}0.000{col 54}{space 4}-.2941921{col 67}{space 3}-.1606785
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1745232{col 26}{space 2}  .036152{col 37}{space 1}   -4.83{col 46}{space 3}0.000{col 54}{space 4}-.2453897{col 67}{space 3}-.1036568
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}-.0402508{col 26}{space 2} .0347214{col 37}{space 1}   -1.16{col 46}{space 3}0.246{col 54}{space 4}-.1083129{col 67}{space 3} .0278113
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2822057{col 26}{space 2} .0349828{col 37}{space 1}   -8.07{col 46}{space 3}0.000{col 54}{space 4}-.3507802{col 67}{space 3}-.2136313
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.0693919{col 26}{space 2} .0379876{col 37}{space 1}   -1.83{col 46}{space 3}0.068{col 54}{space 4}-.1438564{col 67}{space 3} .0050726
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.2741808{col 26}{space 2} .0342714{col 37}{space 1}   -8.00{col 46}{space 3}0.000{col 54}{space 4}-.3413608{col 67}{space 3}-.2070008
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.3438959{col 26}{space 2} .0340683{col 37}{space 1}  -10.09{col 46}{space 3}0.000{col 54}{space 4}-.4106778{col 67}{space 3} -.277114
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.2504616{col 26}{space 2} .0341022{col 37}{space 1}   -7.34{col 46}{space 3}0.000{col 54}{space 4}  -.31731{col 67}{space 3}-.1836132
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.3574188{col 26}{space 2} .0338601{col 37}{space 1}  -10.56{col 46}{space 3}0.000{col 54}{space 4}-.4237925{col 67}{space 3} -.291045
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1478069{col 26}{space 2} .0342778{col 37}{space 1}   -4.31{col 46}{space 3}0.000{col 54}{space 4}-.2149994{col 67}{space 3}-.0806143
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} -.331301{col 26}{space 2} .0340223{col 37}{space 1}   -9.74{col 46}{space 3}0.000{col 54}{space 4}-.3979928{col 67}{space 3}-.2646093
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.2654801{col 26}{space 2} .0340917{col 37}{space 1}   -7.79{col 46}{space 3}0.000{col 54}{space 4}-.3323078{col 67}{space 3}-.1986523
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}-.1157575{col 26}{space 2} .0347229{col 37}{space 1}   -3.33{col 46}{space 3}0.001{col 54}{space 4}-.1838224{col 67}{space 3}-.0476925
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.2580617{col 26}{space 2} .0340123{col 37}{space 1}   -7.59{col 46}{space 3}0.000{col 54}{space 4}-.3247338{col 67}{space 3}-.1913896
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.0199351{col 26}{space 2} .0380914{col 37}{space 1}   -0.52{col 46}{space 3}0.601{col 54}{space 4}-.0946032{col 67}{space 3} .0547329
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.3402821{col 26}{space 2} .0335314{col 37}{space 1}  -10.15{col 46}{space 3}0.000{col 54}{space 4}-.4060114{col 67}{space 3}-.2745528
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.1549983{col 26}{space 2} .0385317{col 37}{space 1}   -4.02{col 46}{space 3}0.000{col 54}{space 4}-.2305294{col 67}{space 3}-.0794672
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.2798808{col 26}{space 2} .0338493{col 37}{space 1}   -8.27{col 46}{space 3}0.000{col 54}{space 4}-.3462334{col 67}{space 3}-.2135283
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.2466994{col 26}{space 2} .0369502{col 37}{space 1}   -6.68{col 46}{space 3}0.000{col 54}{space 4}-.3191304{col 67}{space 3}-.1742683
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.2696726{col 26}{space 2} .0343293{col 37}{space 1}   -7.86{col 46}{space 3}0.000{col 54}{space 4}-.3369661{col 67}{space 3}-.2023791
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2131648{col 26}{space 2} .0349041{col 37}{space 1}   -6.11{col 46}{space 3}0.000{col 54}{space 4} -.281585{col 67}{space 3}-.1447445
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.3282124{col 26}{space 2} .0342906{col 37}{space 1}   -9.57{col 46}{space 3}0.000{col 54}{space 4}-.3954301{col 67}{space 3}-.2609947
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.1391147{col 26}{space 2} .0349756{col 37}{space 1}   -3.98{col 46}{space 3}0.000{col 54}{space 4} -.207675{col 67}{space 3}-.0705545
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.2597584{col 26}{space 2} .0346498{col 37}{space 1}   -7.50{col 46}{space 3}0.000{col 54}{space 4}-.3276802{col 67}{space 3}-.1918367
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}-.1509392{col 26}{space 2} .0353571{col 37}{space 1}   -4.27{col 46}{space 3}0.000{col 54}{space 4}-.2202475{col 67}{space 3}-.0816309
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0040318{col 26}{space 2} .0276511{col 37}{space 1}    0.15{col 46}{space 3}0.884{col 54}{space 4}-.0501708{col 67}{space 3} .0582344
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0194839{col 26}{space 2} .0279821{col 37}{space 1}    0.70{col 46}{space 3}0.486{col 54}{space 4}-.0353676{col 67}{space 3} .0743354
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0126887{col 26}{space 2} .0270206{col 37}{space 1}    0.47{col 46}{space 3}0.639{col 54}{space 4} -.040278{col 67}{space 3} .0656554
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0562224{col 26}{space 2} .0282059{col 37}{space 1}    1.99{col 46}{space 3}0.046{col 54}{space 4} .0009323{col 67}{space 3} .1115126
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0101176{col 26}{space 2}  .027119{col 37}{space 1}    0.37{col 46}{space 3}0.709{col 54}{space 4} -.043042{col 67}{space 3} .0632772
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0897218{col 26}{space 2}  .033165{col 37}{space 1}    2.71{col 46}{space 3}0.007{col 54}{space 4} .0247106{col 67}{space 3} .1547329
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0252379{col 26}{space 2}   .02796{col 37}{space 1}    0.90{col 46}{space 3}0.367{col 54}{space 4}-.0295703{col 67}{space 3}  .080046
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0144901{col 26}{space 2} .0271604{col 37}{space 1}    0.53{col 46}{space 3}0.594{col 54}{space 4}-.0387506{col 67}{space 3} .0677307
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0369753{col 26}{space 2} .0279643{col 37}{space 1}    1.32{col 46}{space 3}0.186{col 54}{space 4}-.0178413{col 67}{space 3}  .091792
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0728211{col 26}{space 2} .0267829{col 37}{space 1}   -2.72{col 46}{space 3}0.007{col 54}{space 4}-.1253218{col 67}{space 3}-.0203204
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0712258{col 26}{space 2} .0277912{col 37}{space 1}   -2.56{col 46}{space 3}0.010{col 54}{space 4} -.125703{col 67}{space 3}-.0167485
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037987{col 26}{space 2} .0003793{col 37}{space 1}   10.02{col 46}{space 3}0.000{col 54}{space 4} .0030552{col 67}{space 3} .0045422
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0056171{col 26}{space 2} .0004141{col 37}{space 1}  -13.57{col 46}{space 3}0.000{col 54}{space 4}-.0064287{col 67}{space 3}-.0048054
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0683081{col 26}{space 2} .0022643{col 37}{space 1}  -30.17{col 46}{space 3}0.000{col 54}{space 4}-.0727466{col 67}{space 3}-.0638696
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0328232{col 26}{space 2} .0033235{col 37}{space 1}    9.88{col 46}{space 3}0.000{col 54}{space 4} .0263085{col 67}{space 3}  .039338
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .374085{col 26}{space 2} .0439714{col 37}{space 1}    8.51{col 46}{space 3}0.000{col 54}{space 4} .2878907{col 67}{space 3} .4602792
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    4.02
{txt}{col 13}Prob > F ={res}    0.0450

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.0117103

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(Baseline L1) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 2 - All FDI L2

. 
. gen active=active_binaryl2

. 
. reg bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,688
                                                {txt}F(52, 8775)       =  {res}   127.58
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0936
                                                {txt}Root MSE          =    {res}  .3585

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0113011{col 26}{space 2} .0043428{col 37}{space 1}    2.60{col 46}{space 3}0.009{col 54}{space 4} .0027881{col 67}{space 3}  .019814
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0223392{col 26}{space 2} .0050496{col 37}{space 1}    4.42{col 46}{space 3}0.000{col 54}{space 4} .0124409{col 67}{space 3} .0322375
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.3023506{col 26}{space 2} .0358007{col 37}{space 1}   -8.45{col 46}{space 3}0.000{col 54}{space 4}-.3725284{col 67}{space 3}-.2321727
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.2382736{col 26}{space 2} .0345363{col 37}{space 1}   -6.90{col 46}{space 3}0.000{col 54}{space 4}-.3059729{col 67}{space 3}-.1705742
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.3839978{col 26}{space 2}  .033697{col 37}{space 1}  -11.40{col 46}{space 3}0.000{col 54}{space 4}-.4500519{col 67}{space 3}-.3179437
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2530344{col 26}{space 2} .0340464{col 37}{space 1}   -7.43{col 46}{space 3}0.000{col 54}{space 4}-.3197732{col 67}{space 3}-.1862955
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2173118{col 26}{space 2}  .039277{col 37}{space 1}   -5.53{col 46}{space 3}0.000{col 54}{space 4}-.2943039{col 67}{space 3}-.1403196
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.1170579{col 26}{space 2} .0373113{col 37}{space 1}   -3.14{col 46}{space 3}0.002{col 54}{space 4}-.1901968{col 67}{space 3} -.043919
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.3711234{col 26}{space 2} .0339139{col 37}{space 1}  -10.94{col 46}{space 3}0.000{col 54}{space 4}-.4376026{col 67}{space 3}-.3046441
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.1983913{col 26}{space 2} .0354084{col 37}{space 1}   -5.60{col 46}{space 3}0.000{col 54}{space 4}   -.2678{col 67}{space 3}-.1289825
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1075361{col 26}{space 2} .0405786{col 37}{space 1}   -2.65{col 46}{space 3}0.008{col 54}{space 4}-.1870796{col 67}{space 3}-.0279926
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.2377657{col 26}{space 2} .0343907{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-.3051795{col 67}{space 3}-.1703519
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.2272924{col 26}{space 2} .0340771{col 37}{space 1}   -6.67{col 46}{space 3}0.000{col 54}{space 4}-.2940915{col 67}{space 3}-.1604933
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1748663{col 26}{space 2} .0361602{col 37}{space 1}   -4.84{col 46}{space 3}0.000{col 54}{space 4}-.2457487{col 67}{space 3} -.103984
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}-.0395494{col 26}{space 2} .0347369{col 37}{space 1}   -1.14{col 46}{space 3}0.255{col 54}{space 4}-.1076419{col 67}{space 3} .0285431
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2831953{col 26}{space 2}  .034988{col 37}{space 1}   -8.09{col 46}{space 3}0.000{col 54}{space 4}  -.35178{col 67}{space 3}-.2146105
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} -.069464{col 26}{space 2} .0380123{col 37}{space 1}   -1.83{col 46}{space 3}0.068{col 54}{space 4}-.1439771{col 67}{space 3} .0050491
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.2741209{col 26}{space 2} .0342961{col 37}{space 1}   -7.99{col 46}{space 3}0.000{col 54}{space 4}-.3413492{col 67}{space 3}-.2068926
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.3441619{col 26}{space 2} .0340845{col 37}{space 1}  -10.10{col 46}{space 3}0.000{col 54}{space 4}-.4109755{col 67}{space 3}-.2773483
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.2511081{col 26}{space 2} .0341052{col 37}{space 1}   -7.36{col 46}{space 3}0.000{col 54}{space 4}-.3179622{col 67}{space 3}-.1842539
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -.357748{col 26}{space 2}   .03389{col 37}{space 1}  -10.56{col 46}{space 3}0.000{col 54}{space 4}-.4241804{col 67}{space 3}-.2913155
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1478111{col 26}{space 2} .0343006{col 37}{space 1}   -4.31{col 46}{space 3}0.000{col 54}{space 4}-.2150482{col 67}{space 3} -.080574
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.3312623{col 26}{space 2} .0340493{col 37}{space 1}   -9.73{col 46}{space 3}0.000{col 54}{space 4}-.3980069{col 67}{space 3}-.2645177
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.2657442{col 26}{space 2} .0341056{col 37}{space 1}   -7.79{col 46}{space 3}0.000{col 54}{space 4}-.3325991{col 67}{space 3}-.1988893
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}-.1155434{col 26}{space 2} .0347495{col 37}{space 1}   -3.33{col 46}{space 3}0.001{col 54}{space 4}-.1836605{col 67}{space 3}-.0474262
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.2581031{col 26}{space 2}  .034027{col 37}{space 1}   -7.59{col 46}{space 3}0.000{col 54}{space 4} -.324804{col 67}{space 3}-.1914022
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.0201344{col 26}{space 2} .0381107{col 37}{space 1}   -0.53{col 46}{space 3}0.597{col 54}{space 4}-.0948404{col 67}{space 3} .0545716
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.3406033{col 26}{space 2} .0335503{col 37}{space 1}  -10.15{col 46}{space 3}0.000{col 54}{space 4}-.4063697{col 67}{space 3}-.2748368
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.1553555{col 26}{space 2} .0385446{col 37}{space 1}   -4.03{col 46}{space 3}0.000{col 54}{space 4}-.2309119{col 67}{space 3}-.0797992
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.2796823{col 26}{space 2} .0338638{col 37}{space 1}   -8.26{col 46}{space 3}0.000{col 54}{space 4}-.3460632{col 67}{space 3}-.2133013
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.2469901{col 26}{space 2} .0369676{col 37}{space 1}   -6.68{col 46}{space 3}0.000{col 54}{space 4}-.3194552{col 67}{space 3}-.1745249
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.2701246{col 26}{space 2} .0343411{col 37}{space 1}   -7.87{col 46}{space 3}0.000{col 54}{space 4}-.3374412{col 67}{space 3} -.202808
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2128678{col 26}{space 2} .0349273{col 37}{space 1}   -6.09{col 46}{space 3}0.000{col 54}{space 4}-.2813334{col 67}{space 3}-.1444021
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.3281597{col 26}{space 2} .0343186{col 37}{space 1}   -9.56{col 46}{space 3}0.000{col 54}{space 4}-.3954322{col 67}{space 3}-.2608872
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.1387261{col 26}{space 2} .0350071{col 37}{space 1}   -3.96{col 46}{space 3}0.000{col 54}{space 4}-.2073482{col 67}{space 3} -.070104
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.2597492{col 26}{space 2} .0346745{col 37}{space 1}   -7.49{col 46}{space 3}0.000{col 54}{space 4}-.3277193{col 67}{space 3} -.191779
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} -.151475{col 26}{space 2} .0353716{col 37}{space 1}   -4.28{col 46}{space 3}0.000{col 54}{space 4}-.2208115{col 67}{space 3}-.0821384
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0037263{col 26}{space 2} .0276516{col 37}{space 1}    0.13{col 46}{space 3}0.893{col 54}{space 4}-.0504773{col 67}{space 3} .0579299
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0187531{col 26}{space 2} .0279811{col 37}{space 1}    0.67{col 46}{space 3}0.503{col 54}{space 4}-.0360964{col 67}{space 3} .0736026
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0138418{col 26}{space 2} .0270147{col 37}{space 1}    0.51{col 46}{space 3}0.608{col 54}{space 4}-.0391133{col 67}{space 3} .0667969
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0566534{col 26}{space 2} .0282028{col 37}{space 1}    2.01{col 46}{space 3}0.045{col 54}{space 4} .0013693{col 67}{space 3} .1119375
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0095767{col 26}{space 2} .0271314{col 37}{space 1}    0.35{col 46}{space 3}0.724{col 54}{space 4}-.0436073{col 67}{space 3} .0627607
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0891283{col 26}{space 2} .0331568{col 37}{space 1}    2.69{col 46}{space 3}0.007{col 54}{space 4} .0241333{col 67}{space 3} .1541234
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0251027{col 26}{space 2} .0279628{col 37}{space 1}    0.90{col 46}{space 3}0.369{col 54}{space 4} -.029711{col 67}{space 3} .0799165
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0139122{col 26}{space 2} .0271778{col 37}{space 1}    0.51{col 46}{space 3}0.609{col 54}{space 4}-.0393627{col 67}{space 3}  .067187
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0365091{col 26}{space 2} .0279802{col 37}{space 1}    1.30{col 46}{space 3}0.192{col 54}{space 4}-.0183387{col 67}{space 3} .0913569
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0732701{col 26}{space 2} .0267973{col 37}{space 1}   -2.73{col 46}{space 3}0.006{col 54}{space 4}-.1257992{col 67}{space 3}-.0207411
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0719443{col 26}{space 2}  .027818{col 37}{space 1}   -2.59{col 46}{space 3}0.010{col 54}{space 4}-.1264741{col 67}{space 3}-.0174145
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037982{col 26}{space 2} .0003793{col 37}{space 1}   10.01{col 46}{space 3}0.000{col 54}{space 4} .0030547{col 67}{space 3} .0045417
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0056165{col 26}{space 2} .0004141{col 37}{space 1}  -13.56{col 46}{space 3}0.000{col 54}{space 4}-.0064282{col 67}{space 3}-.0048048
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0683009{col 26}{space 2} .0022642{col 37}{space 1}  -30.17{col 46}{space 3}0.000{col 54}{space 4}-.0727393{col 67}{space 3}-.0638625
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0330509{col 26}{space 2} .0033235{col 37}{space 1}    9.94{col 46}{space 3}0.000{col 54}{space 4}  .026536{col 67}{space 3} .0395658
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3749532{col 26}{space 2} .0439774{col 37}{space 1}    8.53{col 46}{space 3}0.000{col 54}{space 4} .2887471{col 67}{space 3} .4611593
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}    3.33
{txt}{col 13}Prob > F ={res}    0.0680

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01103816

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(Baseline L2) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 3 - Often Without Cash L1

. 
. gen active=active_binaryl1

. 
. reg often_without_cash active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd5 omitted because of collinearity

Linear regression                               Number of obs     = {res}    87,724
                                                {txt}F(49, 8002)       =  {res}   387.31
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2175
                                                {txt}Root MSE          =    {res} .43031

{txt}{ralign 78:(Std. Err. adjusted for {res:8,003} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0301784{col 26}{space 2} .0065656{col 37}{space 1}   -4.60{col 46}{space 3}0.000{col 54}{space 4}-.0430486{col 67}{space 3}-.0173082
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0129562{col 26}{space 2} .0071369{col 37}{space 1}    1.82{col 46}{space 3}0.070{col 54}{space 4} -.001034{col 67}{space 3} .0269463
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.2098485{col 26}{space 2} .0311873{col 37}{space 1}   -6.73{col 46}{space 3}0.000{col 54}{space 4}-.2709837{col 67}{space 3}-.1487133
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .4868578{col 26}{space 2} .0310518{col 37}{space 1}   15.68{col 46}{space 3}0.000{col 54}{space 4} .4259882{col 67}{space 3} .5477273
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} .2164636{col 26}{space 2} .0371107{col 37}{space 1}    5.83{col 46}{space 3}0.000{col 54}{space 4} .1437169{col 67}{space 3} .2892103
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} .5234576{col 26}{space 2} .0302635{col 37}{space 1}   17.30{col 46}{space 3}0.000{col 54}{space 4} .4641333{col 67}{space 3} .5827819
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} .5452362{col 26}{space 2} .0324465{col 37}{space 1}   16.80{col 46}{space 3}0.000{col 54}{space 4} .4816326{col 67}{space 3} .6088399
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .4496476{col 26}{space 2} .0347542{col 37}{space 1}   12.94{col 46}{space 3}0.000{col 54}{space 4} .3815203{col 67}{space 3} .5177748
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .0545201{col 26}{space 2} .0347154{col 37}{space 1}    1.57{col 46}{space 3}0.116{col 54}{space 4}-.0135312{col 67}{space 3} .1225713
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .4954669{col 26}{space 2} .0310135{col 37}{space 1}   15.98{col 46}{space 3}0.000{col 54}{space 4} .4346724{col 67}{space 3} .5562615
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1065144{col 26}{space 2}  .035653{col 37}{space 1}   -2.99{col 46}{space 3}0.003{col 54}{space 4}-.1764035{col 67}{space 3}-.0366252
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .6192854{col 26}{space 2} .0334117{col 37}{space 1}   18.53{col 46}{space 3}0.000{col 54}{space 4} .5537897{col 67}{space 3} .6847811
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}   .10941{col 26}{space 2} .0316084{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0474492{col 67}{space 3} .1713707
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .5417912{col 26}{space 2} .0306613{col 37}{space 1}   17.67{col 46}{space 3}0.000{col 54}{space 4} .4816871{col 67}{space 3} .6018953
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .3258154{col 26}{space 2} .0318849{col 37}{space 1}   10.22{col 46}{space 3}0.000{col 54}{space 4} .2633128{col 67}{space 3} .3883181
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .4154748{col 26}{space 2} .0327229{col 37}{space 1}   12.70{col 46}{space 3}0.000{col 54}{space 4} .3513294{col 67}{space 3} .4796202
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .2067819{col 26}{space 2} .0358272{col 37}{space 1}    5.77{col 46}{space 3}0.000{col 54}{space 4} .1365513{col 67}{space 3} .2770125
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .4296438{col 26}{space 2} .0307284{col 37}{space 1}   13.98{col 46}{space 3}0.000{col 54}{space 4} .3694082{col 67}{space 3} .4898794
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}  .409251{col 26}{space 2} .0321389{col 37}{space 1}   12.73{col 46}{space 3}0.000{col 54}{space 4} .3462504{col 67}{space 3} .4722515
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .4275546{col 26}{space 2} .0311771{col 37}{space 1}   13.71{col 46}{space 3}0.000{col 54}{space 4} .3664394{col 67}{space 3} .4886698
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.2550169{col 26}{space 2}  .031386{col 37}{space 1}   -8.13{col 46}{space 3}0.000{col 54}{space 4}-.3165416{col 67}{space 3}-.1934922
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2} .3004911{col 26}{space 2} .0315301{col 37}{space 1}    9.53{col 46}{space 3}0.000{col 54}{space 4} .2386838{col 67}{space 3} .3622983
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .2335682{col 26}{space 2} .0324571{col 37}{space 1}    7.20{col 46}{space 3}0.000{col 54}{space 4} .1699439{col 67}{space 3} .2971926
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .4956135{col 26}{space 2} .0301332{col 37}{space 1}   16.45{col 46}{space 3}0.000{col 54}{space 4} .4365446{col 67}{space 3} .5546825
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1685798{col 26}{space 2} .0316938{col 37}{space 1}    5.32{col 46}{space 3}0.000{col 54}{space 4} .1064517{col 67}{space 3} .2307079
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .5166165{col 26}{space 2} .0303357{col 37}{space 1}   17.03{col 46}{space 3}0.000{col 54}{space 4} .4571507{col 67}{space 3} .5760824
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .3116665{col 26}{space 2} .0352215{col 37}{space 1}    8.85{col 46}{space 3}0.000{col 54}{space 4} .2426231{col 67}{space 3} .3807099
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} .0142736{col 26}{space 2} .0304998{col 37}{space 1}    0.47{col 46}{space 3}0.640{col 54}{space 4}-.0455139{col 67}{space 3} .0740612
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0906429{col 26}{space 2} .0465799{col 37}{space 1}    1.95{col 46}{space 3}0.052{col 54}{space 4}-.0006658{col 67}{space 3} .1819516
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .2016868{col 26}{space 2} .0392287{col 37}{space 1}    5.14{col 46}{space 3}0.000{col 54}{space 4} .1247882{col 67}{space 3} .2785853
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .2578465{col 26}{space 2} .0405288{col 37}{space 1}    6.36{col 46}{space 3}0.000{col 54}{space 4} .1783995{col 67}{space 3} .3372935
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .3161274{col 26}{space 2} .0324808{col 37}{space 1}    9.73{col 46}{space 3}0.000{col 54}{space 4} .2524566{col 67}{space 3} .3797982
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .5850011{col 26}{space 2} .0310237{col 37}{space 1}   18.86{col 46}{space 3}0.000{col 54}{space 4} .5241866{col 67}{space 3} .6458155
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0452046{col 26}{space 2} .0339902{col 37}{space 1}   -1.33{col 46}{space 3}0.184{col 54}{space 4}-.1118342{col 67}{space 3} .0214251
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .3650961{col 26}{space 2} .0322475{col 37}{space 1}   11.32{col 46}{space 3}0.000{col 54}{space 4} .3018826{col 67}{space 3} .4283097
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} .3246899{col 26}{space 2} .0340593{col 37}{space 1}    9.53{col 46}{space 3}0.000{col 54}{space 4} .2579249{col 67}{space 3}  .391455
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .3893864{col 26}{space 2} .0334218{col 37}{space 1}   11.65{col 46}{space 3}0.000{col 54}{space 4} .3238709{col 67}{space 3} .4549018
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0106766{col 26}{space 2} .0146343{col 37}{space 1}   -0.73{col 46}{space 3}0.466{col 54}{space 4}-.0393636{col 67}{space 3} .0180104
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2}-.0013653{col 26}{space 2} .0131986{col 37}{space 1}   -0.10{col 46}{space 3}0.918{col 54}{space 4}-.0272379{col 67}{space 3} .0245074
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1067083{col 26}{space 2} .0253215{col 37}{space 1}    4.21{col 46}{space 3}0.000{col 54}{space 4} .0570716{col 67}{space 3}  .156345
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0154795{col 26}{space 2} .0148797{col 37}{space 1}    1.04{col 46}{space 3}0.298{col 54}{space 4}-.0136885{col 67}{space 3} .0446475
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0204751{col 26}{space 2} .0138666{col 37}{space 1}    1.48{col 46}{space 3}0.140{col 54}{space 4}-.0067071{col 67}{space 3} .0476574
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}  .042485{col 26}{space 2} .0154526{col 37}{space 1}    2.75{col 46}{space 3}0.006{col 54}{space 4} .0121939{col 67}{space 3} .0727762
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0273254{col 26}{space 2} .0141139{col 37}{space 1}   -1.94{col 46}{space 3}0.053{col 54}{space 4}-.0549924{col 67}{space 3} .0003416
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0024655{col 26}{space 2} .0141254{col 37}{space 1}   -0.17{col 46}{space 3}0.861{col 54}{space 4}-.0301551{col 67}{space 3}  .025224
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0032834{col 26}{space 2} .0005284{col 37}{space 1}    6.21{col 46}{space 3}0.000{col 54}{space 4} .0022477{col 67}{space 3} .0043191
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0027824{col 26}{space 2} .0005842{col 37}{space 1}   -4.76{col 46}{space 3}0.000{col 54}{space 4}-.0039277{col 67}{space 3}-.0016371
{txt}{space 6}female {c |}{col 14}{res}{space 2} .0148564{col 26}{space 2} .0026058{col 37}{space 1}    5.70{col 46}{space 3}0.000{col 54}{space 4} .0097484{col 67}{space 3} .0199645
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.1041269{col 26}{space 2} .0050186{col 37}{space 1}  -20.75{col 46}{space 3}0.000{col 54}{space 4}-.1139646{col 67}{space 3}-.0942891
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3135654{col 26}{space 2} .0337649{col 37}{space 1}    9.29{col 46}{space 3}0.000{col 54}{space 4} .2473774{col 67}{space 3} .3797535
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8002) ={res}   26.78
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.04313459

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(DV Without Cash L1) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 4 - Often Without Cash L2

. 
. gen active=active_binaryl2

. 
. reg often_without_cash active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd5 omitted because of collinearity

Linear regression                               Number of obs     = {res}    87,724
                                                {txt}F(49, 8002)       =  {res}   387.58
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.2175
                                                {txt}Root MSE          =    {res} .43031

{txt}{ralign 78:(Std. Err. adjusted for {res:8,003} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0309138{col 26}{space 2} .0065152{col 37}{space 1}   -4.74{col 46}{space 3}0.000{col 54}{space 4}-.0436854{col 67}{space 3}-.0181423
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0153856{col 26}{space 2} .0070052{col 37}{space 1}    2.20{col 46}{space 3}0.028{col 54}{space 4} .0016537{col 67}{space 3} .0291176
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.2089582{col 26}{space 2} .0311079{col 37}{space 1}   -6.72{col 46}{space 3}0.000{col 54}{space 4}-.2699379{col 67}{space 3}-.1479785
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .4876556{col 26}{space 2} .0309574{col 37}{space 1}   15.75{col 46}{space 3}0.000{col 54}{space 4} .4269709{col 67}{space 3} .5483402
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}  .215051{col 26}{space 2} .0371437{col 37}{space 1}    5.79{col 46}{space 3}0.000{col 54}{space 4} .1422397{col 67}{space 3} .2878623
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} .5236485{col 26}{space 2} .0301701{col 37}{space 1}   17.36{col 46}{space 3}0.000{col 54}{space 4} .4645072{col 67}{space 3} .5827898
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} .5453361{col 26}{space 2} .0323735{col 37}{space 1}   16.85{col 46}{space 3}0.000{col 54}{space 4} .4818756{col 67}{space 3} .6087966
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}  .450048{col 26}{space 2} .0347217{col 37}{space 1}   12.96{col 46}{space 3}0.000{col 54}{space 4} .3819844{col 67}{space 3} .5181116
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .0562172{col 26}{space 2} .0346416{col 37}{space 1}    1.62{col 46}{space 3}0.105{col 54}{space 4}-.0116895{col 67}{space 3} .1241238
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .4945971{col 26}{space 2} .0309485{col 37}{space 1}   15.98{col 46}{space 3}0.000{col 54}{space 4}   .43393{col 67}{space 3} .5552642
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.1053782{col 26}{space 2} .0355956{col 37}{space 1}   -2.96{col 46}{space 3}0.003{col 54}{space 4}-.1751549{col 67}{space 3}-.0356014
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .6199459{col 26}{space 2} .0333736{col 37}{space 1}   18.58{col 46}{space 3}0.000{col 54}{space 4}  .554525{col 67}{space 3} .6853669
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1088533{col 26}{space 2} .0315245{col 37}{space 1}    3.45{col 46}{space 3}0.001{col 54}{space 4} .0470572{col 67}{space 3} .1706494
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .5423672{col 26}{space 2}  .030559{col 37}{space 1}   17.75{col 46}{space 3}0.000{col 54}{space 4} .4824637{col 67}{space 3} .6022707
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}  .323512{col 26}{space 2} .0317814{col 37}{space 1}   10.18{col 46}{space 3}0.000{col 54}{space 4} .2612122{col 67}{space 3} .3858118
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .4180306{col 26}{space 2} .0326062{col 37}{space 1}   12.82{col 46}{space 3}0.000{col 54}{space 4} .3541139{col 67}{space 3} .4819473
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .2063596{col 26}{space 2} .0357293{col 37}{space 1}    5.78{col 46}{space 3}0.000{col 54}{space 4} .1363208{col 67}{space 3} .2763984
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .4292011{col 26}{space 2} .0306386{col 37}{space 1}   14.01{col 46}{space 3}0.000{col 54}{space 4} .3691414{col 67}{space 3} .4892607
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .4099283{col 26}{space 2} .0320589{col 37}{space 1}   12.79{col 46}{space 3}0.000{col 54}{space 4} .3470845{col 67}{space 3}  .472772
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .4290144{col 26}{space 2} .0310633{col 37}{space 1}   13.81{col 46}{space 3}0.000{col 54}{space 4} .3681223{col 67}{space 3} .4899065
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.2537587{col 26}{space 2} .0313057{col 37}{space 1}   -8.11{col 46}{space 3}0.000{col 54}{space 4}-.3151261{col 67}{space 3}-.1923914
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2} .3001516{col 26}{space 2} .0314655{col 37}{space 1}    9.54{col 46}{space 3}0.000{col 54}{space 4}  .238471{col 67}{space 3} .3618322
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .2334627{col 26}{space 2} .0323166{col 37}{space 1}    7.22{col 46}{space 3}0.000{col 54}{space 4} .1701138{col 67}{space 3} .2968116
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .4957747{col 26}{space 2} .0300186{col 37}{space 1}   16.52{col 46}{space 3}0.000{col 54}{space 4} .4369303{col 67}{space 3}  .554619
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1677249{col 26}{space 2} .0316252{col 37}{space 1}    5.30{col 46}{space 3}0.000{col 54}{space 4} .1057313{col 67}{space 3} .2297186
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .5165232{col 26}{space 2} .0302541{col 37}{space 1}   17.07{col 46}{space 3}0.000{col 54}{space 4} .4572172{col 67}{space 3} .5758292
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .3122487{col 26}{space 2} .0351448{col 37}{space 1}    8.88{col 46}{space 3}0.000{col 54}{space 4} .2433558{col 67}{space 3} .3811416
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} .0153488{col 26}{space 2} .0304114{col 37}{space 1}    0.50{col 46}{space 3}0.614{col 54}{space 4}-.0442654{col 67}{space 3}  .074963
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0912782{col 26}{space 2} .0465524{col 37}{space 1}    1.96{col 46}{space 3}0.050{col 54}{space 4} .0000233{col 67}{space 3} .1825331
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .2012233{col 26}{space 2} .0390396{col 37}{space 1}    5.15{col 46}{space 3}0.000{col 54}{space 4} .1246956{col 67}{space 3}  .277751
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .2579579{col 26}{space 2} .0404538{col 37}{space 1}    6.38{col 46}{space 3}0.000{col 54}{space 4} .1786579{col 67}{space 3} .3372578
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .3172471{col 26}{space 2} .0323915{col 37}{space 1}    9.79{col 46}{space 3}0.000{col 54}{space 4} .2537513{col 67}{space 3}  .380743
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .5836409{col 26}{space 2} .0309782{col 37}{space 1}   18.84{col 46}{space 3}0.000{col 54}{space 4} .5229155{col 67}{space 3} .6443663
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0450642{col 26}{space 2} .0338905{col 37}{space 1}   -1.33{col 46}{space 3}0.184{col 54}{space 4}-.1114983{col 67}{space 3} .0213699
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .3636821{col 26}{space 2} .0322209{col 37}{space 1}   11.29{col 46}{space 3}0.000{col 54}{space 4} .3005209{col 67}{space 3} .4268434
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} .3246627{col 26}{space 2} .0340022{col 37}{space 1}    9.55{col 46}{space 3}0.000{col 54}{space 4} .2580095{col 67}{space 3} .3913159
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2} .3906716{col 26}{space 2} .0333545{col 37}{space 1}   11.71{col 46}{space 3}0.000{col 54}{space 4} .3252881{col 67}{space 3} .4560551
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0125869{col 26}{space 2} .0146873{col 37}{space 1}   -0.86{col 46}{space 3}0.391{col 54}{space 4}-.0413779{col 67}{space 3}  .016204
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd6 {c |}{col 14}{res}{space 2} .0014418{col 26}{space 2}  .013186{col 37}{space 1}    0.11{col 46}{space 3}0.913{col 54}{space 4}-.0244061{col 67}{space 3} .0272897
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1098473{col 26}{space 2} .0253299{col 37}{space 1}    4.34{col 46}{space 3}0.000{col 54}{space 4} .0601941{col 67}{space 3} .1595004
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0172212{col 26}{space 2} .0148426{col 37}{space 1}    1.16{col 46}{space 3}0.246{col 54}{space 4}-.0118742{col 67}{space 3} .0463165
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0235362{col 26}{space 2} .0138877{col 37}{space 1}    1.69{col 46}{space 3}0.090{col 54}{space 4}-.0036872{col 67}{space 3} .0507596
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0452774{col 26}{space 2} .0154315{col 37}{space 1}    2.93{col 46}{space 3}0.003{col 54}{space 4} .0150276{col 67}{space 3} .0755273
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0244791{col 26}{space 2} .0141572{col 37}{space 1}   -1.73{col 46}{space 3}0.084{col 54}{space 4}-.0522309{col 67}{space 3} .0032726
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} .0010397{col 26}{space 2} .0141134{col 37}{space 1}    0.07{col 46}{space 3}0.941{col 54}{space 4}-.0266262{col 67}{space 3} .0287057
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0032853{col 26}{space 2} .0005283{col 37}{space 1}    6.22{col 46}{space 3}0.000{col 54}{space 4} .0022498{col 67}{space 3} .0043209
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0027846{col 26}{space 2} .0005842{col 37}{space 1}   -4.77{col 46}{space 3}0.000{col 54}{space 4}-.0039298{col 67}{space 3}-.0016395
{txt}{space 6}female {c |}{col 14}{res}{space 2} .0148339{col 26}{space 2} .0026055{col 37}{space 1}    5.69{col 46}{space 3}0.000{col 54}{space 4} .0097264{col 67}{space 3} .0199414
{txt}{space 7}urban {c |}{col 14}{res}{space 2} -.104477{col 26}{space 2} .0050822{col 37}{space 1}  -20.56{col 46}{space 3}0.000{col 54}{space 4}-.1144393{col 67}{space 3}-.0945146
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3101516{col 26}{space 2} .0336502{col 37}{space 1}    9.22{col 46}{space 3}0.000{col 54}{space 4} .2441884{col 67}{space 3} .3761149
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8002) ={res}   28.41
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.04629944

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(DV Without Cash L2) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 5 - Working L1

. 
. gen active=active_binaryl1

. 
. reg working active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,239
                                                {txt}F(52, 8775)       =  {res}   236.82
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1393
                                                {txt}Root MSE          =    {res} .44886

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0454126{col 26}{space 2} .0058562{col 37}{space 1}    7.75{col 46}{space 3}0.000{col 54}{space 4} .0339331{col 67}{space 3} .0568922
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0029042{col 26}{space 2} .0071901{col 37}{space 1}    0.40{col 46}{space 3}0.686{col 54}{space 4}-.0111902{col 67}{space 3} .0169986
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0712753{col 26}{space 2} .0295927{col 37}{space 1}   -2.41{col 46}{space 3}0.016{col 54}{space 4}-.1292839{col 67}{space 3}-.0132667
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.1054287{col 26}{space 2} .0321184{col 37}{space 1}   -3.28{col 46}{space 3}0.001{col 54}{space 4}-.1683883{col 67}{space 3}-.0424691
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1309187{col 26}{space 2} .0334664{col 37}{space 1}   -3.91{col 46}{space 3}0.000{col 54}{space 4}-.1965207{col 67}{space 3}-.0653166
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2654026{col 26}{space 2}  .029912{col 37}{space 1}   -8.87{col 46}{space 3}0.000{col 54}{space 4}-.3240372{col 67}{space 3} -.206768
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2769075{col 26}{space 2} .0362147{col 37}{space 1}   -7.65{col 46}{space 3}0.000{col 54}{space 4}-.3478967{col 67}{space 3}-.2059182
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.0976076{col 26}{space 2} .0313124{col 37}{space 1}   -3.12{col 46}{space 3}0.002{col 54}{space 4}-.1589873{col 67}{space 3}-.0362279
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.0403377{col 26}{space 2}  .030652{col 37}{space 1}   -1.32{col 46}{space 3}0.188{col 54}{space 4}-.1004227{col 67}{space 3} .0197473
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.2148311{col 26}{space 2} .0311935{col 37}{space 1}   -6.89{col 46}{space 3}0.000{col 54}{space 4}-.2759777{col 67}{space 3}-.1536845
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0022174{col 26}{space 2} .0307427{col 37}{space 1}    0.07{col 46}{space 3}0.943{col 54}{space 4}-.0580455{col 67}{space 3} .0624802
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.1899301{col 26}{space 2} .0335157{col 37}{space 1}   -5.67{col 46}{space 3}0.000{col 54}{space 4}-.2556287{col 67}{space 3}-.1242316
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1163961{col 26}{space 2} .0300124{col 37}{space 1}    3.88{col 46}{space 3}0.000{col 54}{space 4} .0575647{col 67}{space 3} .1752275
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.2831901{col 26}{space 2} .0298255{col 37}{space 1}   -9.49{col 46}{space 3}0.000{col 54}{space 4}-.3416551{col 67}{space 3}-.2247251
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}  .040254{col 26}{space 2} .0306797{col 37}{space 1}    1.31{col 46}{space 3}0.190{col 54}{space 4}-.0198854{col 67}{space 3} .1003933
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2215799{col 26}{space 2}  .031177{col 37}{space 1}   -7.11{col 46}{space 3}0.000{col 54}{space 4} -.282694{col 67}{space 3}-.1604657
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} -.184963{col 26}{space 2} .0317154{col 37}{space 1}   -5.83{col 46}{space 3}0.000{col 54}{space 4}-.2471326{col 67}{space 3}-.1227933
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .0685603{col 26}{space 2} .0325313{col 37}{space 1}    2.11{col 46}{space 3}0.035{col 54}{space 4} .0047912{col 67}{space 3} .1323293
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.0958483{col 26}{space 2} .0327842{col 37}{space 1}   -2.92{col 46}{space 3}0.003{col 54}{space 4} -.160113{col 67}{space 3}-.0315836
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} -.263843{col 26}{space 2} .0296477{col 37}{space 1}   -8.90{col 46}{space 3}0.000{col 54}{space 4}-.3219595{col 67}{space 3}-.2057265
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} .1718173{col 26}{space 2} .0316244{col 37}{space 1}    5.43{col 46}{space 3}0.000{col 54}{space 4} .1098259{col 67}{space 3} .2338086
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1449113{col 26}{space 2} .0295967{col 37}{space 1}   -4.90{col 46}{space 3}0.000{col 54}{space 4}-.2029279{col 67}{space 3}-.0868948
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .0040548{col 26}{space 2}  .030919{col 37}{space 1}    0.13{col 46}{space 3}0.896{col 54}{space 4}-.0565536{col 67}{space 3} .0646633
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} -.251538{col 26}{space 2} .0292167{col 37}{space 1}   -8.61{col 46}{space 3}0.000{col 54}{space 4}-.3088096{col 67}{space 3}-.1942664
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0501013{col 26}{space 2} .0303206{col 37}{space 1}    1.65{col 46}{space 3}0.098{col 54}{space 4}-.0093341{col 67}{space 3} .1095368
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.1676645{col 26}{space 2}  .029186{col 37}{space 1}   -5.74{col 46}{space 3}0.000{col 54}{space 4}-.2248759{col 67}{space 3}-.1104531
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.1497078{col 26}{space 2} .0347053{col 37}{space 1}   -4.31{col 46}{space 3}0.000{col 54}{space 4}-.2177384{col 67}{space 3}-.0816773
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} -.001048{col 26}{space 2} .0294362{col 37}{space 1}   -0.04{col 46}{space 3}0.972{col 54}{space 4}-.0587498{col 67}{space 3} .0566539
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} -.009217{col 26}{space 2} .0327344{col 37}{space 1}   -0.28{col 46}{space 3}0.778{col 54}{space 4}-.0733842{col 67}{space 3} .0549501
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0969848{col 26}{space 2} .0357543{col 37}{space 1}   -2.71{col 46}{space 3}0.007{col 54}{space 4}-.1670716{col 67}{space 3}-.0268979
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .0163793{col 26}{space 2} .0356246{col 37}{space 1}    0.46{col 46}{space 3}0.646{col 54}{space 4}-.0534533{col 67}{space 3} .0862118
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}  .045574{col 26}{space 2} .0329459{col 37}{space 1}    1.38{col 46}{space 3}0.167{col 54}{space 4}-.0190076{col 67}{space 3} .1101557
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2072034{col 26}{space 2} .0334426{col 37}{space 1}   -6.20{col 46}{space 3}0.000{col 54}{space 4}-.2727586{col 67}{space 3}-.1416481
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0807888{col 26}{space 2}  .031735{col 37}{space 1}   -2.55{col 46}{space 3}0.011{col 54}{space 4} -.142997{col 67}{space 3}-.0185807
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0630259{col 26}{space 2} .0319595{col 37}{space 1}    1.97{col 46}{space 3}0.049{col 54}{space 4} .0003778{col 67}{space 3}  .125674
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1393228{col 26}{space 2} .0324783{col 37}{space 1}   -4.29{col 46}{space 3}0.000{col 54}{space 4}-.2029878{col 67}{space 3}-.0756577
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}-.1263742{col 26}{space 2} .0313786{col 37}{space 1}   -4.03{col 46}{space 3}0.000{col 54}{space 4}-.1878836{col 67}{space 3}-.0648648
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}-.1295438{col 26}{space 2}  .032814{col 37}{space 1}   -3.95{col 46}{space 3}0.000{col 54}{space 4}-.1938669{col 67}{space 3}-.0652207
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}-.1399503{col 26}{space 2} .0338633{col 37}{space 1}   -4.13{col 46}{space 3}0.000{col 54}{space 4}-.2063303{col 67}{space 3}-.0735704
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.1277206{col 26}{space 2} .0320178{col 37}{space 1}   -3.99{col 46}{space 3}0.000{col 54}{space 4} -.190483{col 67}{space 3}-.0649582
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1760906{col 26}{space 2} .0340937{col 37}{space 1}   -5.16{col 46}{space 3}0.000{col 54}{space 4}-.2429222{col 67}{space 3}-.1092591
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.1420978{col 26}{space 2}  .032151{col 37}{space 1}   -4.42{col 46}{space 3}0.000{col 54}{space 4}-.2051212{col 67}{space 3}-.0790743
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}-.1908005{col 26}{space 2} .0348404{col 37}{space 1}   -5.48{col 46}{space 3}0.000{col 54}{space 4} -.259096{col 67}{space 3}-.1225051
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}  -.20798{col 26}{space 2} .0332557{col 37}{space 1}   -6.25{col 46}{space 3}0.000{col 54}{space 4} -.273169{col 67}{space 3}-.1427911
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.1408579{col 26}{space 2} .0320525{col 37}{space 1}   -4.39{col 46}{space 3}0.000{col 54}{space 4}-.2036883{col 67}{space 3}-.0780275
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.1757711{col 26}{space 2} .0332246{col 37}{space 1}   -5.29{col 46}{space 3}0.000{col 54}{space 4}-.2408991{col 67}{space 3}-.1106431
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0865472{col 26}{space 2} .0317831{col 37}{space 1}   -2.72{col 46}{space 3}0.006{col 54}{space 4}-.1488496{col 67}{space 3}-.0242449
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2} -.112479{col 26}{space 2} .0329295{col 37}{space 1}   -3.42{col 46}{space 3}0.001{col 54}{space 4}-.1770285{col 67}{space 3}-.0479295
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0332444{col 26}{space 2} .0007115{col 37}{space 1}   46.72{col 46}{space 3}0.000{col 54}{space 4} .0318497{col 67}{space 3} .0346392
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0381702{col 26}{space 2} .0007935{col 37}{space 1}  -48.11{col 46}{space 3}0.000{col 54}{space 4}-.0397256{col 67}{space 3}-.0366148
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1298493{col 26}{space 2} .0028299{col 37}{space 1}  -45.88{col 46}{space 3}0.000{col 54}{space 4}-.1353966{col 67}{space 3} -.124302
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0753047{col 26}{space 2} .0047009{col 37}{space 1}   16.02{col 46}{space 3}0.000{col 54}{space 4} .0660898{col 67}{space 3} .0845196
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.0375915{col 26}{space 2} .0453372{col 37}{space 1}   -0.83{col 46}{space 3}0.407{col 54}{space 4}-.1264631{col 67}{space 3}   .05128
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}   29.46
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.04250843

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(DV Working L1) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 6 - Working L2

. 
. gen active=active_binaryl2

. 
. reg working  active inactive cd* yd* age age2 female urban, cl(cluster)
{txt}note: cd20 omitted because of collinearity
note: yd3 omitted because of collinearity

Linear regression                               Number of obs     = {res}   100,239
                                                {txt}F(52, 8775)       =  {res}   238.10
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1394
                                                {txt}Root MSE          =    {res} .44882

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0498226{col 26}{space 2}  .005969{col 37}{space 1}    8.35{col 46}{space 3}0.000{col 54}{space 4} .0381221{col 67}{space 3} .0615232
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0008033{col 26}{space 2} .0070121{col 37}{space 1}    0.11{col 46}{space 3}0.909{col 54}{space 4}-.0129421{col 67}{space 3} .0145486
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.0729102{col 26}{space 2} .0295194{col 37}{space 1}   -2.47{col 46}{space 3}0.014{col 54}{space 4}-.1307751{col 67}{space 3}-.0150453
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.1055513{col 26}{space 2} .0320415{col 37}{space 1}   -3.29{col 46}{space 3}0.001{col 54}{space 4}-.1683601{col 67}{space 3}-.0427425
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.1283385{col 26}{space 2} .0335948{col 37}{space 1}   -3.82{col 46}{space 3}0.000{col 54}{space 4}-.1941922{col 67}{space 3}-.0624848
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.2642727{col 26}{space 2} .0298549{col 37}{space 1}   -8.85{col 46}{space 3}0.000{col 54}{space 4}-.3227954{col 67}{space 3}  -.20575
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.2771832{col 26}{space 2} .0361892{col 37}{space 1}   -7.66{col 46}{space 3}0.000{col 54}{space 4}-.3481225{col 67}{space 3}-.2062439
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}-.0973683{col 26}{space 2} .0313858{col 37}{space 1}   -3.10{col 46}{space 3}0.002{col 54}{space 4}-.1588918{col 67}{space 3}-.0358448
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.0416968{col 26}{space 2} .0305835{col 37}{space 1}   -1.36{col 46}{space 3}0.173{col 54}{space 4}-.1016476{col 67}{space 3} .0182539
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} -.212277{col 26}{space 2}  .030976{col 37}{space 1}   -6.85{col 46}{space 3}0.000{col 54}{space 4}-.2729972{col 67}{space 3}-.1515568
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-.0004627{col 26}{space 2} .0306993{col 37}{space 1}   -0.02{col 46}{space 3}0.988{col 54}{space 4}-.0606406{col 67}{space 3} .0597151
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.1905761{col 26}{space 2} .0335775{col 37}{space 1}   -5.68{col 46}{space 3}0.000{col 54}{space 4}-.2563958{col 67}{space 3}-.1247564
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .1172975{col 26}{space 2} .0299383{col 37}{space 1}    3.92{col 46}{space 3}0.000{col 54}{space 4} .0586113{col 67}{space 3} .1759836
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} -.282786{col 26}{space 2} .0297544{col 37}{space 1}   -9.50{col 46}{space 3}0.000{col 54}{space 4}-.3411116{col 67}{space 3}-.2244604
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .0434031{col 26}{space 2} .0306303{col 37}{space 1}    1.42{col 46}{space 3}0.157{col 54}{space 4}-.0166394{col 67}{space 3} .1034456
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.2235443{col 26}{space 2}  .031131{col 37}{space 1}   -7.18{col 46}{space 3}0.000{col 54}{space 4}-.2845683{col 67}{space 3}-.1625203
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.1830779{col 26}{space 2} .0317136{col 37}{space 1}   -5.77{col 46}{space 3}0.000{col 54}{space 4} -.245244{col 67}{space 3}-.1209117
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .0701414{col 26}{space 2} .0324827{col 37}{space 1}    2.16{col 46}{space 3}0.031{col 54}{space 4} .0064678{col 67}{space 3} .1338151
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} -.096076{col 26}{space 2} .0327208{col 37}{space 1}   -2.94{col 46}{space 3}0.003{col 54}{space 4}-.1602164{col 67}{space 3}-.0319356
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.2648171{col 26}{space 2} .0295698{col 37}{space 1}   -8.96{col 46}{space 3}0.000{col 54}{space 4}-.3227807{col 67}{space 3}-.2068534
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} .1688576{col 26}{space 2} .0315625{col 37}{space 1}    5.35{col 46}{space 3}0.000{col 54}{space 4} .1069877{col 67}{space 3} .2307275
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd21 {c |}{col 14}{res}{space 2}-.1439157{col 26}{space 2} .0295345{col 37}{space 1}   -4.87{col 46}{space 3}0.000{col 54}{space 4}-.2018102{col 67}{space 3}-.0860211
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .0048829{col 26}{space 2} .0307909{col 37}{space 1}    0.16{col 46}{space 3}0.874{col 54}{space 4}-.0554744{col 67}{space 3} .0652403
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.2500031{col 26}{space 2} .0291532{col 37}{space 1}   -8.58{col 46}{space 3}0.000{col 54}{space 4}-.3071501{col 67}{space 3}-.1928561
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}  .052027{col 26}{space 2} .0302749{col 37}{space 1}    1.72{col 46}{space 3}0.086{col 54}{space 4}-.0073189{col 67}{space 3}  .111373
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.1670649{col 26}{space 2} .0291133{col 37}{space 1}   -5.74{col 46}{space 3}0.000{col 54}{space 4}-.2241337{col 67}{space 3}-.1099961
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.1506306{col 26}{space 2} .0346526{col 37}{space 1}   -4.35{col 46}{space 3}0.000{col 54}{space 4}-.2185579{col 67}{space 3}-.0827034
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.0022469{col 26}{space 2} .0293692{col 37}{space 1}   -0.08{col 46}{space 3}0.939{col 54}{space 4}-.0598174{col 67}{space 3} .0553235
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0089521{col 26}{space 2} .0326742{col 37}{space 1}   -0.27{col 46}{space 3}0.784{col 54}{space 4}-.0730012{col 67}{space 3}  .055097
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.0962543{col 26}{space 2} .0355283{col 37}{space 1}   -2.71{col 46}{space 3}0.007{col 54}{space 4} -.165898{col 67}{space 3}-.0266105
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .0184599{col 26}{space 2} .0355813{col 37}{space 1}    0.52{col 46}{space 3}0.604{col 54}{space 4}-.0512877{col 67}{space 3} .0882075
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .0447081{col 26}{space 2} .0328962{col 37}{space 1}    1.36{col 46}{space 3}0.174{col 54}{space 4}-.0197762{col 67}{space 3} .1091924
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.2035607{col 26}{space 2} .0334082{col 37}{space 1}   -6.09{col 46}{space 3}0.000{col 54}{space 4}-.2690487{col 67}{space 3}-.1380728
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.0816813{col 26}{space 2} .0316388{col 37}{space 1}   -2.58{col 46}{space 3}0.010{col 54}{space 4}-.1437007{col 67}{space 3}-.0196618
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0646484{col 26}{space 2} .0318696{col 37}{space 1}    2.03{col 46}{space 3}0.043{col 54}{space 4} .0021765{col 67}{space 3} .1271202
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1384598{col 26}{space 2} .0324168{col 37}{space 1}   -4.27{col 46}{space 3}0.000{col 54}{space 4}-.2020043{col 67}{space 3}-.0749153
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}-.1279993{col 26}{space 2} .0313589{col 37}{space 1}   -4.08{col 46}{space 3}0.000{col 54}{space 4}-.1894702{col 67}{space 3}-.0665285
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}-.1309909{col 26}{space 2} .0328595{col 37}{space 1}   -3.99{col 46}{space 3}0.000{col 54}{space 4}-.1954032{col 67}{space 3}-.0665786
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}-.1433428{col 26}{space 2} .0339217{col 37}{space 1}   -4.23{col 46}{space 3}0.000{col 54}{space 4}-.2098373{col 67}{space 3}-.0768484
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.1235654{col 26}{space 2} .0320417{col 37}{space 1}   -3.86{col 46}{space 3}0.000{col 54}{space 4}-.1863748{col 67}{space 3}-.0607561
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1753796{col 26}{space 2} .0341486{col 37}{space 1}   -5.14{col 46}{space 3}0.000{col 54}{space 4}-.2423188{col 67}{space 3}-.1084405
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.1457094{col 26}{space 2} .0322128{col 37}{space 1}   -4.52{col 46}{space 3}0.000{col 54}{space 4}-.2088541{col 67}{space 3}-.0825648
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}-.1954294{col 26}{space 2} .0348749{col 37}{space 1}   -5.60{col 46}{space 3}0.000{col 54}{space 4}-.2637924{col 67}{space 3}-.1270664
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}-.2098223{col 26}{space 2} .0332903{col 37}{space 1}   -6.30{col 46}{space 3}0.000{col 54}{space 4}-.2750791{col 67}{space 3}-.1445655
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.1449887{col 26}{space 2} .0321374{col 37}{space 1}   -4.51{col 46}{space 3}0.000{col 54}{space 4}-.2079855{col 67}{space 3}-.0819919
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.1795524{col 26}{space 2} .0332905{col 37}{space 1}   -5.39{col 46}{space 3}0.000{col 54}{space 4}-.2448096{col 67}{space 3}-.1142953
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0905068{col 26}{space 2} .0318626{col 37}{space 1}   -2.84{col 46}{space 3}0.005{col 54}{space 4} -.152965{col 67}{space 3}-.0280487
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1174394{col 26}{space 2} .0330157{col 37}{space 1}   -3.56{col 46}{space 3}0.000{col 54}{space 4} -.182158{col 67}{space 3}-.0527208
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0332435{col 26}{space 2} .0007113{col 37}{space 1}   46.74{col 46}{space 3}0.000{col 54}{space 4} .0318492{col 67}{space 3} .0346378
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0381691{col 26}{space 2} .0007934{col 37}{space 1}  -48.11{col 46}{space 3}0.000{col 54}{space 4}-.0397244{col 67}{space 3}-.0366137
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1298216{col 26}{space 2} .0028307{col 37}{space 1}  -45.86{col 46}{space 3}0.000{col 54}{space 4}-.1353705{col 67}{space 3}-.1242727
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0751249{col 26}{space 2} .0047491{col 37}{space 1}   15.82{col 46}{space 3}0.000{col 54}{space 4} .0658156{col 67}{space 3} .0844342
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.0345918{col 26}{space 2} .0452795{col 37}{space 1}   -0.76{col 46}{space 3}0.445{col 54}{space 4}-.1233502{col 67}{space 3} .0541665
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  8775) ={res}   35.07
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.04901936

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A2.doc, append dec(3) ctitle(DV Working L2) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A2.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. 
. 
. *** Table A3 - Logit Estimator

. 
. 
. 
. *Model 1 - All FDI

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. logit bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-46052.652}  
Iteration 1:{space 3}log pseudolikelihood = {res:-41642.222}  
Iteration 2:{space 3}log pseudolikelihood = {res: -41143.04}  
Iteration 3:{space 3}log pseudolikelihood = {res:-41133.149}  
Iteration 4:{space 3}log pseudolikelihood = {res: -41133.11}  
Iteration 5:{space 3}log pseudolikelihood = {res: -41133.11}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,688
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   5622.13
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res} -41133.11{txt}{col 49}Pseudo R2{col 67}= {res}    0.1068

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}  .079801{col 26}{space 2} .0328234{col 37}{space 1}    2.43{col 46}{space 3}0.015{col 54}{space 4} .0154683{col 67}{space 3} .1441338
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .1510057{col 26}{space 2} .0356667{col 37}{space 1}    4.23{col 46}{space 3}0.000{col 54}{space 4} .0811002{col 67}{space 3} .2209112
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-1.099892{col 26}{space 2} .1579872{col 37}{space 1}   -6.96{col 46}{space 3}0.000{col 54}{space 4}-1.409541{col 67}{space 3} -.790243
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.5659308{col 26}{space 2} .0914115{col 37}{space 1}   -6.19{col 46}{space 3}0.000{col 54}{space 4}-.7450941{col 67}{space 3}-.3867674
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-2.514371{col 26}{space 2} .1320876{col 37}{space 1}  -19.04{col 46}{space 3}0.000{col 54}{space 4}-2.773258{col 67}{space 3}-2.255484
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.7214069{col 26}{space 2} .0928685{col 37}{space 1}   -7.77{col 46}{space 3}0.000{col 54}{space 4}-.9034259{col 67}{space 3}-.5393879
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} -.412034{col 26}{space 2} .1525341{col 37}{space 1}   -2.70{col 46}{space 3}0.007{col 54}{space 4}-.7109954{col 67}{space 3}-.1130727
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1630267{col 26}{space 2} .1227764{col 37}{space 1}    1.33{col 46}{space 3}0.184{col 54}{space 4}-.0776105{col 67}{space 3}  .403664
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-2.120299{col 26}{space 2} .1199596{col 37}{space 1}  -17.68{col 46}{space 3}0.000{col 54}{space 4}-2.355416{col 67}{space 3}-1.885183
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.2651212{col 26}{space 2} .1048697{col 37}{space 1}   -2.53{col 46}{space 3}0.011{col 54}{space 4}-.4706621{col 67}{space 3}-.0595804
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1908576{col 26}{space 2} .1444825{col 37}{space 1}    1.32{col 46}{space 3}0.187{col 54}{space 4}-.0923229{col 67}{space 3} .4740381
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.5658486{col 26}{space 2} .1198282{col 37}{space 1}   -4.72{col 46}{space 3}0.000{col 54}{space 4}-.8007076{col 67}{space 3}-.3309897
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.4906164{col 26}{space 2} .0767723{col 37}{space 1}   -6.39{col 46}{space 3}0.000{col 54}{space 4}-.6410873{col 67}{space 3}-.3401455
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1213042{col 26}{space 2} .1192188{col 37}{space 1}   -1.02{col 46}{space 3}0.309{col 54}{space 4}-.3549688{col 67}{space 3} .1123603
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .5198871{col 26}{space 2} .0789285{col 37}{space 1}    6.59{col 46}{space 3}0.000{col 54}{space 4} .3651901{col 67}{space 3} .6745841
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} -.956769{col 26}{space 2} .1180961{col 37}{space 1}   -8.10{col 46}{space 3}0.000{col 54}{space 4}-1.188233{col 67}{space 3}-.7253048
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .3251509{col 26}{space 2} .1043342{col 37}{space 1}    3.12{col 46}{space 3}0.002{col 54}{space 4} .1206597{col 67}{space 3} .5296421
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.8754069{col 26}{space 2} .1011137{col 37}{space 1}   -8.66{col 46}{space 3}0.000{col 54}{space 4}-1.073586{col 67}{space 3}-.6772277
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-1.533889{col 26}{space 2} .0981677{col 37}{space 1}  -15.63{col 46}{space 3}0.000{col 54}{space 4}-1.726294{col 67}{space 3}-1.341484
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.6661589{col 26}{space 2} .0816567{col 37}{space 1}   -8.16{col 46}{space 3}0.000{col 54}{space 4}-.8262032{col 67}{space 3}-.5061147
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -2.43544{col 26}{space 2} .1819686{col 37}{space 1}  -13.38{col 46}{space 3}0.000{col 54}{space 4}-2.792092{col 67}{space 3}-2.078788
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .6488182{col 26}{space 2} .1619763{col 37}{space 1}    4.01{col 46}{space 3}0.000{col 54}{space 4} .3313504{col 67}{space 3}  .966286
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.0218095{col 26}{space 2} .0790932{col 37}{space 1}   -0.28{col 46}{space 3}0.783{col 54}{space 4}-.1768293{col 67}{space 3} .1332102
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-1.499415{col 26}{space 2} .0949083{col 37}{space 1}  -15.80{col 46}{space 3}0.000{col 54}{space 4}-1.685432{col 67}{space 3}-1.313398
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.8476225{col 26}{space 2} .1147689{col 37}{space 1}   -7.39{col 46}{space 3}0.000{col 54}{space 4}-1.072565{col 67}{space 3}-.6226796
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1207184{col 26}{space 2} .0794426{col 37}{space 1}    1.52{col 46}{space 3}0.129{col 54}{space 4}-.0349863{col 67}{space 3} .2764231
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} -.709314{col 26}{space 2} .0874788{col 37}{space 1}   -8.11{col 46}{space 3}0.000{col 54}{space 4}-.8807694{col 67}{space 3}-.5378587
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .6572383{col 26}{space 2} .1087672{col 37}{space 1}    6.04{col 46}{space 3}0.000{col 54}{space 4} .4440585{col 67}{space 3} .8704182
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.565283{col 26}{space 2} .0863391{col 37}{space 1}  -18.13{col 46}{space 3}0.000{col 54}{space 4}-1.734504{col 67}{space 3}-1.396061
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0530747{col 26}{space 2} .1398198{col 37}{space 1}   -0.38{col 46}{space 3}0.704{col 54}{space 4}-.3271165{col 67}{space 3} .2209671
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.9940474{col 26}{space 2} .1164954{col 37}{space 1}   -8.53{col 46}{space 3}0.000{col 54}{space 4}-1.222374{col 67}{space 3}-.7657206
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.7196862{col 26}{space 2} .2058518{col 37}{space 1}   -3.50{col 46}{space 3}0.000{col 54}{space 4}-1.123148{col 67}{space 3}-.3162241
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.8597165{col 26}{space 2} .0988151{col 37}{space 1}   -8.70{col 46}{space 3}0.000{col 54}{space 4}-1.053391{col 67}{space 3}-.6660424
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.3677228{col 26}{space 2} .0942129{col 37}{space 1}   -3.90{col 46}{space 3}0.000{col 54}{space 4}-.5523766{col 67}{space 3} -.183069
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-1.511411{col 26}{space 2} .1681254{col 37}{space 1}   -8.99{col 46}{space 3}0.000{col 54}{space 4}-1.840931{col 67}{space 3}-1.181891
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0020871{col 26}{space 2} .0857672{col 37}{space 1}    0.02{col 46}{space 3}0.981{col 54}{space 4}-.1660136{col 67}{space 3} .1701878
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.6888245{col 26}{space 2} .0956314{col 37}{space 1}   -7.20{col 46}{space 3}0.000{col 54}{space 4}-.8762586{col 67}{space 3}-.5013905
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .6102932{col 26}{space 2} .0794189{col 37}{space 1}    7.68{col 46}{space 3}0.000{col 54}{space 4}  .454635{col 67}{space 3} .7659513
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .6868235{col 26}{space 2} .0863151{col 37}{space 1}    7.96{col 46}{space 3}0.000{col 54}{space 4} .5176489{col 67}{space 3}  .855998
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .4757905{col 26}{space 2} .1515607{col 37}{space 1}    3.14{col 46}{space 3}0.002{col 54}{space 4}  .178737{col 67}{space 3} .7728439
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .6399023{col 26}{space 2} .0680931{col 37}{space 1}    9.40{col 46}{space 3}0.000{col 54}{space 4} .5064422{col 67}{space 3} .7733623
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} 1.202904{col 26}{space 2} .0951877{col 37}{space 1}   12.64{col 46}{space 3}0.000{col 54}{space 4}  1.01634{col 67}{space 3} 1.389469
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .6453547{col 26}{space 2} .0656761{col 37}{space 1}    9.83{col 46}{space 3}0.000{col 54}{space 4} .5166318{col 67}{space 3} .7740775
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .9964127{col 26}{space 2} .1321047{col 37}{space 1}    7.54{col 46}{space 3}0.000{col 54}{space 4} .7374923{col 67}{space 3} 1.255333
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .7400029{col 26}{space 2} .0789697{col 37}{space 1}    9.37{col 46}{space 3}0.000{col 54}{space 4} .5852252{col 67}{space 3} .8947807
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .6633432{col 26}{space 2} .0635544{col 37}{space 1}   10.44{col 46}{space 3}0.000{col 54}{space 4} .5387788{col 67}{space 3} .7879076
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .7882524{col 26}{space 2} .0616512{col 37}{space 1}   12.79{col 46}{space 3}0.000{col 54}{space 4} .6674183{col 67}{space 3} .9090865
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0941198{col 26}{space 2} .0679197{col 37}{space 1}   -1.39{col 46}{space 3}0.166{col 54}{space 4}-.2272399{col 67}{space 3} .0390004
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0450417{col 26}{space 2} .0039307{col 37}{space 1}   11.46{col 46}{space 3}0.000{col 54}{space 4} .0373376{col 67}{space 3} .0527458
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0653667{col 26}{space 2} .0047755{col 37}{space 1}  -13.69{col 46}{space 3}0.000{col 54}{space 4}-.0747265{col 67}{space 3}-.0560069
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5381134{col 26}{space 2} .0174704{col 37}{space 1}  -30.80{col 46}{space 3}0.000{col 54}{space 4}-.5723548{col 67}{space 3}-.5038721
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .2490974{col 26}{space 2} .0255482{col 37}{space 1}    9.75{col 46}{space 3}0.000{col 54}{space 4} .1990238{col 67}{space 3} .2991711
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.108824{col 26}{space 2} .1150371{col 37}{space 1}  -18.33{col 46}{space 3}0.000{col 54}{space 4}-2.334292{col 67}{space 3}-1.883355
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    3.10
{txt}{col 10}Prob > chi2 =  {res}  0.0781

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.07120465

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(All FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 2 - FDI from High Corruption Countries

. 
. 
. 
. gen active=active50_highcorr

. 
. gen inactive=inactive50_highcorr

. 
. logit bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-46052.652}  
Iteration 1:{space 3}log pseudolikelihood = {res:-41634.464}  
Iteration 2:{space 3}log pseudolikelihood = {res:-41134.078}  
Iteration 3:{space 3}log pseudolikelihood = {res:-41124.144}  
Iteration 4:{space 3}log pseudolikelihood = {res:-41124.105}  
Iteration 5:{space 3}log pseudolikelihood = {res:-41124.105}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,688
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   5643.73
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-41124.105{txt}{col 49}Pseudo R2{col 67}= {res}    0.1070

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .1124165{col 26}{space 2}  .037982{col 37}{space 1}    2.96{col 46}{space 3}0.003{col 54}{space 4} .0379731{col 67}{space 3} .1868599
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .2014895{col 26}{space 2} .0390811{col 37}{space 1}    5.16{col 46}{space 3}0.000{col 54}{space 4}  .124892{col 67}{space 3} .2780871
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-1.046125{col 26}{space 2} .1590955{col 37}{space 1}   -6.58{col 46}{space 3}0.000{col 54}{space 4}-1.357947{col 67}{space 3}-.7343039
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.5152271{col 26}{space 2} .0940423{col 37}{space 1}   -5.48{col 46}{space 3}0.000{col 54}{space 4}-.6995467{col 67}{space 3}-.3309076
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-2.490027{col 26}{space 2} .1319453{col 37}{space 1}  -18.87{col 46}{space 3}0.000{col 54}{space 4}-2.748635{col 67}{space 3}-2.231419
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.7001154{col 26}{space 2} .0947277{col 37}{space 1}   -7.39{col 46}{space 3}0.000{col 54}{space 4}-.8857783{col 67}{space 3}-.5144525
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.4087706{col 26}{space 2} .1557227{col 37}{space 1}   -2.62{col 46}{space 3}0.009{col 54}{space 4}-.7139816{col 67}{space 3}-.1035596
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1813431{col 26}{space 2} .1247064{col 37}{space 1}    1.45{col 46}{space 3}0.146{col 54}{space 4}-.0630769{col 67}{space 3} .4257631
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-2.126548{col 26}{space 2} .1202184{col 37}{space 1}  -17.69{col 46}{space 3}0.000{col 54}{space 4}-2.362172{col 67}{space 3}-1.890925
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} -.217844{col 26}{space 2} .1078077{col 37}{space 1}   -2.02{col 46}{space 3}0.043{col 54}{space 4}-.4291432{col 67}{space 3}-.0065448
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .2672901{col 26}{space 2} .1452816{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4}-.0174567{col 67}{space 3} .5520368
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.5495959{col 26}{space 2} .1206465{col 37}{space 1}   -4.56{col 46}{space 3}0.000{col 54}{space 4}-.7860587{col 67}{space 3}-.3131332
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} -.469031{col 26}{space 2} .0781676{col 37}{space 1}   -6.00{col 46}{space 3}0.000{col 54}{space 4}-.6222368{col 67}{space 3}-.3158253
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0966808{col 26}{space 2} .1201437{col 37}{space 1}   -0.80{col 46}{space 3}0.421{col 54}{space 4}-.3321581{col 67}{space 3} .1387965
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .5696109{col 26}{space 2} .0803781{col 37}{space 1}    7.09{col 46}{space 3}0.000{col 54}{space 4} .4120728{col 67}{space 3} .7271491
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.9346755{col 26}{space 2} .1191136{col 37}{space 1}   -7.85{col 46}{space 3}0.000{col 54}{space 4}-1.168134{col 67}{space 3}-.7012172
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .3249494{col 26}{space 2}  .104797{col 37}{space 1}    3.10{col 46}{space 3}0.002{col 54}{space 4} .1195511{col 67}{space 3} .5303477
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.8152633{col 26}{space 2} .1028289{col 37}{space 1}   -7.93{col 46}{space 3}0.000{col 54}{space 4}-1.016804{col 67}{space 3}-.6137224
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-1.517262{col 26}{space 2} .1006043{col 37}{space 1}  -15.08{col 46}{space 3}0.000{col 54}{space 4}-1.714443{col 67}{space 3}-1.320081
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.6442638{col 26}{space 2} .0834306{col 37}{space 1}   -7.72{col 46}{space 3}0.000{col 54}{space 4}-.8077848{col 67}{space 3}-.4807428
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-2.339295{col 26}{space 2} .1833029{col 37}{space 1}  -12.76{col 46}{space 3}0.000{col 54}{space 4}-2.698562{col 67}{space 3}-1.980028
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}   .73195{col 26}{space 2} .1615084{col 37}{space 1}    4.53{col 46}{space 3}0.000{col 54}{space 4} .4153993{col 67}{space 3} 1.048501
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0374323{col 26}{space 2} .0814833{col 37}{space 1}    0.46{col 46}{space 3}0.646{col 54}{space 4}-.1222721{col 67}{space 3} .1971367
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-1.494357{col 26}{space 2} .0970227{col 37}{space 1}  -15.40{col 46}{space 3}0.000{col 54}{space 4}-1.684518{col 67}{space 3}-1.304196
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.8022182{col 26}{space 2} .1169972{col 37}{space 1}   -6.86{col 46}{space 3}0.000{col 54}{space 4}-1.031529{col 67}{space 3}-.5729079
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1632597{col 26}{space 2} .0814533{col 37}{space 1}    2.00{col 46}{space 3}0.045{col 54}{space 4} .0036142{col 67}{space 3} .3229051
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.6500169{col 26}{space 2} .0900903{col 37}{space 1}   -7.22{col 46}{space 3}0.000{col 54}{space 4}-.8265907{col 67}{space 3}-.4734431
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .6896449{col 26}{space 2}  .109377{col 37}{space 1}    6.31{col 46}{space 3}0.000{col 54}{space 4}   .47527{col 67}{space 3} .9040198
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.481699{col 26}{space 2}  .089739{col 37}{space 1}  -16.51{col 46}{space 3}0.000{col 54}{space 4}-1.657585{col 67}{space 3}-1.305814
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0340546{col 26}{space 2} .1402735{col 37}{space 1}   -0.24{col 46}{space 3}0.808{col 54}{space 4}-.3089856{col 67}{space 3} .2408765
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.9744104{col 26}{space 2}  .115818{col 37}{space 1}   -8.41{col 46}{space 3}0.000{col 54}{space 4} -1.20141{col 67}{space 3}-.7474112
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.6932474{col 26}{space 2} .2060432{col 37}{space 1}   -3.36{col 46}{space 3}0.001{col 54}{space 4}-1.097085{col 67}{space 3}  -.28941
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.8478284{col 26}{space 2} .0998655{col 37}{space 1}   -8.49{col 46}{space 3}0.000{col 54}{space 4}-1.043561{col 67}{space 3}-.6520956
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.3341842{col 26}{space 2} .0963334{col 37}{space 1}   -3.47{col 46}{space 3}0.001{col 54}{space 4}-.5229942{col 67}{space 3}-.1453743
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-1.418429{col 26}{space 2} .1705428{col 37}{space 1}   -8.32{col 46}{space 3}0.000{col 54}{space 4}-1.752687{col 67}{space 3}-1.084171
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.0016492{col 26}{space 2} .0866817{col 37}{space 1}   -0.02{col 46}{space 3}0.985{col 54}{space 4}-.1715422{col 67}{space 3} .1682439
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.6801804{col 26}{space 2} .0948587{col 37}{space 1}   -7.17{col 46}{space 3}0.000{col 54}{space 4}   -.8661{col 67}{space 3}-.4942608
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .6258088{col 26}{space 2} .0766401{col 37}{space 1}    8.17{col 46}{space 3}0.000{col 54}{space 4}  .475597{col 67}{space 3} .7760206
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .7026321{col 26}{space 2} .0825632{col 37}{space 1}    8.51{col 46}{space 3}0.000{col 54}{space 4} .5408112{col 67}{space 3} .8644531
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .4724376{col 26}{space 2} .1524609{col 37}{space 1}    3.10{col 46}{space 3}0.002{col 54}{space 4} .1736198{col 67}{space 3} .7712555
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2}  .645019{col 26}{space 2} .0669571{col 37}{space 1}    9.63{col 46}{space 3}0.000{col 54}{space 4} .5137855{col 67}{space 3} .7762525
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} 1.204528{col 26}{space 2} .0948396{col 37}{space 1}   12.70{col 46}{space 3}0.000{col 54}{space 4} 1.018646{col 67}{space 3}  1.39041
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .6511157{col 26}{space 2} .0650324{col 37}{space 1}   10.01{col 46}{space 3}0.000{col 54}{space 4} .5236545{col 67}{space 3} .7785769
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} 1.004687{col 26}{space 2} .1316992{col 37}{space 1}    7.63{col 46}{space 3}0.000{col 54}{space 4} .7465612{col 67}{space 3} 1.262813
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .7460565{col 26}{space 2} .0787798{col 37}{space 1}    9.47{col 46}{space 3}0.000{col 54}{space 4} .5916509{col 67}{space 3} .9004621
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .6717232{col 26}{space 2} .0632585{col 37}{space 1}   10.62{col 46}{space 3}0.000{col 54}{space 4} .5477387{col 67}{space 3} .7957076
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .7898133{col 26}{space 2} .0616536{col 37}{space 1}   12.81{col 46}{space 3}0.000{col 54}{space 4} .6689745{col 67}{space 3} .9106521
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0913064{col 26}{space 2}  .067977{col 37}{space 1}   -1.34{col 46}{space 3}0.179{col 54}{space 4}-.2245388{col 67}{space 3}  .041926
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0452935{col 26}{space 2} .0039342{col 37}{space 1}   11.51{col 46}{space 3}0.000{col 54}{space 4} .0375826{col 67}{space 3} .0530045
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0656434{col 26}{space 2} .0047797{col 37}{space 1}  -13.73{col 46}{space 3}0.000{col 54}{space 4}-.0750114{col 67}{space 3}-.0562754
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5384369{col 26}{space 2} .0174745{col 37}{space 1}  -30.81{col 46}{space 3}0.000{col 54}{space 4}-.5726862{col 67}{space 3}-.5041875
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .2586284{col 26}{space 2} .0247348{col 37}{space 1}   10.46{col 46}{space 3}0.000{col 54}{space 4} .2101491{col 67}{space 3} .3071078
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.146566{col 26}{space 2} .1162006{col 37}{space 1}  -18.47{col 46}{space 3}0.000{col 54}{space 4}-2.374315{col 67}{space 3}-1.918817
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    3.22
{txt}{col 10}Prob > chi2 =  {res}  0.0725

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.08907303

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(High Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 3 - FDI from Low Corruption Counties

. 
. 
. 
. gen active=active50_lowcorr

. 
. gen inactive=inactive50_lowcorr

. 
. logit bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-46052.652}  
Iteration 1:{space 3}log pseudolikelihood = {res:-41657.681}  
Iteration 2:{space 3}log pseudolikelihood = {res:-41160.058}  
Iteration 3:{space 3}log pseudolikelihood = {res:-41150.199}  
Iteration 4:{space 3}log pseudolikelihood = {res: -41150.16}  
Iteration 5:{space 3}log pseudolikelihood = {res: -41150.16}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,688
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   5556.99
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res} -41150.16{txt}{col 49}Pseudo R2{col 67}= {res}    0.1065

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0271415{col 26}{space 2} .0381582{col 37}{space 1}   -0.71{col 46}{space 3}0.477{col 54}{space 4}-.1019302{col 67}{space 3} .0476472
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}-.0179333{col 26}{space 2} .0487912{col 37}{space 1}   -0.37{col 46}{space 3}0.713{col 54}{space 4}-.1135623{col 67}{space 3} .0776956
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-1.090707{col 26}{space 2} .1578721{col 37}{space 1}   -6.91{col 46}{space 3}0.000{col 54}{space 4}-1.400131{col 67}{space 3}-.7812834
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.5883021{col 26}{space 2} .0902575{col 37}{space 1}   -6.52{col 46}{space 3}0.000{col 54}{space 4}-.7652035{col 67}{space 3}-.4114007
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-2.534405{col 26}{space 2} .1338402{col 37}{space 1}  -18.94{col 46}{space 3}0.000{col 54}{space 4}-2.796727{col 67}{space 3}-2.272083
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.7540617{col 26}{space 2} .0900579{col 37}{space 1}   -8.37{col 46}{space 3}0.000{col 54}{space 4}-.9305718{col 67}{space 3}-.5775515
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.3833175{col 26}{space 2}  .148351{col 37}{space 1}   -2.58{col 46}{space 3}0.010{col 54}{space 4}-.6740802{col 67}{space 3}-.0925547
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1470354{col 26}{space 2} .1196352{col 37}{space 1}    1.23{col 46}{space 3}0.219{col 54}{space 4}-.0874454{col 67}{space 3} .3815161
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-2.133717{col 26}{space 2}  .121925{col 37}{space 1}  -17.50{col 46}{space 3}0.000{col 54}{space 4}-2.372686{col 67}{space 3}-1.894748
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.2846334{col 26}{space 2} .1039832{col 37}{space 1}   -2.74{col 46}{space 3}0.006{col 54}{space 4}-.4884368{col 67}{space 3}  -.08083
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .2261172{col 26}{space 2} .1464333{col 37}{space 1}    1.54{col 46}{space 3}0.123{col 54}{space 4}-.0608867{col 67}{space 3} .5131212
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} -.585603{col 26}{space 2} .1202297{col 37}{space 1}   -4.87{col 46}{space 3}0.000{col 54}{space 4}-.8212489{col 67}{space 3} -.349957
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.4985545{col 26}{space 2} .0756961{col 37}{space 1}   -6.59{col 46}{space 3}0.000{col 54}{space 4} -.646916{col 67}{space 3}-.3501929
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1579929{col 26}{space 2}  .117421{col 37}{space 1}   -1.35{col 46}{space 3}0.178{col 54}{space 4}-.3881339{col 67}{space 3} .0721481
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .5442078{col 26}{space 2}  .078771{col 37}{space 1}    6.91{col 46}{space 3}0.000{col 54}{space 4} .3898195{col 67}{space 3} .6985962
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-1.027809{col 26}{space 2} .1155864{col 37}{space 1}   -8.89{col 46}{space 3}0.000{col 54}{space 4}-1.254354{col 67}{space 3}-.8012638
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .3221697{col 26}{space 2} .1055123{col 37}{space 1}    3.05{col 46}{space 3}0.002{col 54}{space 4} .1153694{col 67}{space 3}   .52897
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} -.881391{col 26}{space 2}  .100383{col 37}{space 1}   -8.78{col 46}{space 3}0.000{col 54}{space 4}-1.078138{col 67}{space 3}-.6846439
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-1.520703{col 26}{space 2} .0973469{col 37}{space 1}  -15.62{col 46}{space 3}0.000{col 54}{space 4}-1.711499{col 67}{space 3}-1.329906
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.7065122{col 26}{space 2} .0795418{col 37}{space 1}   -8.88{col 46}{space 3}0.000{col 54}{space 4}-.8624113{col 67}{space 3}-.5506131
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-2.395783{col 26}{space 2} .1841121{col 37}{space 1}  -13.01{col 46}{space 3}0.000{col 54}{space 4}-2.756636{col 67}{space 3} -2.03493
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .6673155{col 26}{space 2} .1617749{col 37}{space 1}    4.12{col 46}{space 3}0.000{col 54}{space 4} .3502425{col 67}{space 3} .9843884
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} -.025826{col 26}{space 2} .0781376{col 37}{space 1}   -0.33{col 46}{space 3}0.741{col 54}{space 4} -.178973{col 67}{space 3}  .127321
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-1.511296{col 26}{space 2} .0922048{col 37}{space 1}  -16.39{col 46}{space 3}0.000{col 54}{space 4}-1.692014{col 67}{space 3}-1.330577
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} -.880055{col 26}{space 2} .1133833{col 37}{space 1}   -7.76{col 46}{space 3}0.000{col 54}{space 4}-1.102282{col 67}{space 3}-.6578279
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1111207{col 26}{space 2} .0791149{col 37}{space 1}    1.40{col 46}{space 3}0.160{col 54}{space 4}-.0439417{col 67}{space 3}  .266183
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.6992922{col 26}{space 2} .0883706{col 37}{space 1}   -7.91{col 46}{space 3}0.000{col 54}{space 4}-.8724955{col 67}{space 3}-.5260889
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .6585362{col 26}{space 2} .1074052{col 37}{space 1}    6.13{col 46}{space 3}0.000{col 54}{space 4} .4480259{col 67}{space 3} .8690466
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.561113{col 26}{space 2} .0870975{col 37}{space 1}  -17.92{col 46}{space 3}0.000{col 54}{space 4}-1.731821{col 67}{space 3}-1.390405
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0890232{col 26}{space 2} .1405312{col 37}{space 1}   -0.63{col 46}{space 3}0.526{col 54}{space 4}-.3644592{col 67}{space 3} .1864129
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.9961583{col 26}{space 2}  .116349{col 37}{space 1}   -8.56{col 46}{space 3}0.000{col 54}{space 4}-1.224198{col 67}{space 3}-.7681186
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} -.786623{col 26}{space 2} .2041934{col 37}{space 1}   -3.85{col 46}{space 3}0.000{col 54}{space 4}-1.186835{col 67}{space 3}-.3864113
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.8733111{col 26}{space 2} .0975522{col 37}{space 1}   -8.95{col 46}{space 3}0.000{col 54}{space 4} -1.06451{col 67}{space 3}-.6821123
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.3935552{col 26}{space 2} .0911121{col 37}{space 1}   -4.32{col 46}{space 3}0.000{col 54}{space 4}-.5721316{col 67}{space 3}-.2149788
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-1.482613{col 26}{space 2}  .170475{col 37}{space 1}   -8.70{col 46}{space 3}0.000{col 54}{space 4}-1.816738{col 67}{space 3}-1.148488
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0170807{col 26}{space 2} .0843944{col 37}{space 1}    0.20{col 46}{space 3}0.840{col 54}{space 4}-.1483293{col 67}{space 3} .1824908
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.6954133{col 26}{space 2} .0957799{col 37}{space 1}   -7.26{col 46}{space 3}0.000{col 54}{space 4}-.8831385{col 67}{space 3} -.507688
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .6464419{col 26}{space 2} .0771117{col 37}{space 1}    8.38{col 46}{space 3}0.000{col 54}{space 4} .4953057{col 67}{space 3} .7975782
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .7200699{col 26}{space 2} .0848536{col 37}{space 1}    8.49{col 46}{space 3}0.000{col 54}{space 4} .5537598{col 67}{space 3}   .88638
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}  .507091{col 26}{space 2} .1487907{col 37}{space 1}    3.41{col 46}{space 3}0.001{col 54}{space 4} .2154665{col 67}{space 3} .7987155
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .6576923{col 26}{space 2} .0672494{col 37}{space 1}    9.78{col 46}{space 3}0.000{col 54}{space 4} .5258859{col 67}{space 3} .7894988
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} 1.205104{col 26}{space 2} .0953284{col 37}{space 1}   12.64{col 46}{space 3}0.000{col 54}{space 4} 1.018263{col 67}{space 3} 1.391944
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .6539511{col 26}{space 2} .0661102{col 37}{space 1}    9.89{col 46}{space 3}0.000{col 54}{space 4} .5243776{col 67}{space 3} .7835246
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .9914369{col 26}{space 2} .1322533{col 37}{space 1}    7.50{col 46}{space 3}0.000{col 54}{space 4} .7322252{col 67}{space 3} 1.250649
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .7391348{col 26}{space 2} .0790426{col 37}{space 1}    9.35{col 46}{space 3}0.000{col 54}{space 4} .5842141{col 67}{space 3} .8940555
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .6657953{col 26}{space 2} .0641917{col 37}{space 1}   10.37{col 46}{space 3}0.000{col 54}{space 4} .5399819{col 67}{space 3} .7916088
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .7869278{col 26}{space 2} .0616674{col 37}{space 1}   12.76{col 46}{space 3}0.000{col 54}{space 4} .6660619{col 67}{space 3} .9077936
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0969642{col 26}{space 2} .0684451{col 37}{space 1}   -1.42{col 46}{space 3}0.157{col 54}{space 4}-.2311143{col 67}{space 3} .0371858
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0447632{col 26}{space 2} .0039247{col 37}{space 1}   11.41{col 46}{space 3}0.000{col 54}{space 4} .0370709{col 67}{space 3} .0524555
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0650492{col 26}{space 2}  .004766{col 37}{space 1}  -13.65{col 46}{space 3}0.000{col 54}{space 4}-.0743903{col 67}{space 3} -.055708
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5376301{col 26}{space 2} .0174519{col 37}{space 1}  -30.81{col 46}{space 3}0.000{col 54}{space 4}-.5718352{col 67}{space 3} -.503425
{txt}{space 7}urban {c |}{col 14}{res}{space 2}  .282128{col 26}{space 2} .0252731{col 37}{space 1}   11.16{col 46}{space 3}0.000{col 54}{space 4} .2325938{col 67}{space 3} .3316623
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.059514{col 26}{space 2} .1127458{col 37}{space 1}  -18.27{col 46}{space 3}0.000{col 54}{space 4}-2.280491{col 67}{space 3}-1.838536
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    0.03
{txt}{col 10}Prob > chi2 =  {res}  0.8711

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.00920816

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(Low Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 4 - FDI from High Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_highwgb

. 
. gen inactive=inactive50_highwgb

. 
. logit bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-46052.652}  
Iteration 1:{space 3}log pseudolikelihood = {res:-41657.763}  
Iteration 2:{space 3}log pseudolikelihood = {res:-41160.329}  
Iteration 3:{space 3}log pseudolikelihood = {res:-41150.478}  
Iteration 4:{space 3}log pseudolikelihood = {res:-41150.439}  
Iteration 5:{space 3}log pseudolikelihood = {res:-41150.439}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,688
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   5585.23
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-41150.439{txt}{col 49}Pseudo R2{col 67}= {res}    0.1064

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0168484{col 26}{space 2} .0435061{col 37}{space 1}    0.39{col 46}{space 3}0.699{col 54}{space 4} -.068422{col 67}{space 3} .1021189
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}-.0164728{col 26}{space 2}  .051456{col 37}{space 1}   -0.32{col 46}{space 3}0.749{col 54}{space 4}-.1173247{col 67}{space 3} .0843791
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-1.106411{col 26}{space 2}  .157564{col 37}{space 1}   -7.02{col 46}{space 3}0.000{col 54}{space 4}-1.415231{col 67}{space 3}-.7975915
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.5940293{col 26}{space 2} .0897371{col 37}{space 1}   -6.62{col 46}{space 3}0.000{col 54}{space 4}-.7699108{col 67}{space 3}-.4181478
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} -2.54111{col 26}{space 2} .1325565{col 37}{space 1}  -19.17{col 46}{space 3}0.000{col 54}{space 4}-2.800916{col 67}{space 3}-2.281304
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.7557309{col 26}{space 2} .0900108{col 37}{space 1}   -8.40{col 46}{space 3}0.000{col 54}{space 4}-.9321488{col 67}{space 3}-.5793129
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.3830733{col 26}{space 2}  .148003{col 37}{space 1}   -2.59{col 46}{space 3}0.010{col 54}{space 4}-.6731539{col 67}{space 3}-.0929928
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1443033{col 26}{space 2} .1181218{col 37}{space 1}    1.22{col 46}{space 3}0.222{col 54}{space 4}-.0872113{col 67}{space 3} .3758178
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-2.134984{col 26}{space 2} .1220567{col 37}{space 1}  -17.49{col 46}{space 3}0.000{col 54}{space 4}-2.374211{col 67}{space 3}-1.895757
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.2904789{col 26}{space 2} .1030756{col 37}{space 1}   -2.82{col 46}{space 3}0.005{col 54}{space 4}-.4925034{col 67}{space 3}-.0884543
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .2032723{col 26}{space 2}  .144544{col 37}{space 1}    1.41{col 46}{space 3}0.160{col 54}{space 4}-.0800287{col 67}{space 3} .4865733
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.5839203{col 26}{space 2} .1202745{col 37}{space 1}   -4.85{col 46}{space 3}0.000{col 54}{space 4} -.819654{col 67}{space 3}-.3481865
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.5065647{col 26}{space 2} .0748883{col 37}{space 1}   -6.76{col 46}{space 3}0.000{col 54}{space 4}-.6533432{col 67}{space 3}-.3597863
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1569646{col 26}{space 2} .1173299{col 37}{space 1}   -1.34{col 46}{space 3}0.181{col 54}{space 4} -.386927{col 67}{space 3} .0729978
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}  .533757{col 26}{space 2} .0771784{col 37}{space 1}    6.92{col 46}{space 3}0.000{col 54}{space 4} .3824901{col 67}{space 3} .6850238
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-1.029929{col 26}{space 2} .1156713{col 37}{space 1}   -8.90{col 46}{space 3}0.000{col 54}{space 4}-1.256641{col 67}{space 3}-.8032175
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .3227557{col 26}{space 2} .1057415{col 37}{space 1}    3.05{col 46}{space 3}0.002{col 54}{space 4} .1155062{col 67}{space 3} .5300051
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.8910425{col 26}{space 2} .0991277{col 37}{space 1}   -8.99{col 46}{space 3}0.000{col 54}{space 4}-1.085329{col 67}{space 3}-.6967557
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-1.528356{col 26}{space 2} .0963771{col 37}{space 1}  -15.86{col 46}{space 3}0.000{col 54}{space 4}-1.717252{col 67}{space 3}-1.339461
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.7112261{col 26}{space 2} .0794471{col 37}{space 1}   -8.95{col 46}{space 3}0.000{col 54}{space 4}-.8669396{col 67}{space 3}-.5555126
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-2.427106{col 26}{space 2} .1800605{col 37}{space 1}  -13.48{col 46}{space 3}0.000{col 54}{space 4}-2.780018{col 67}{space 3}-2.074194
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .6496235{col 26}{space 2} .1598205{col 37}{space 1}    4.06{col 46}{space 3}0.000{col 54}{space 4} .3363812{col 67}{space 3} .9628659
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.0363779{col 26}{space 2} .0771922{col 37}{space 1}   -0.47{col 46}{space 3}0.637{col 54}{space 4}-.1876719{col 67}{space 3}  .114916
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-1.512988{col 26}{space 2} .0920485{col 37}{space 1}  -16.44{col 46}{space 3}0.000{col 54}{space 4}  -1.6934{col 67}{space 3}-1.332576
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.8812595{col 26}{space 2} .1132808{col 37}{space 1}   -7.78{col 46}{space 3}0.000{col 54}{space 4}-1.103286{col 67}{space 3}-.6592331
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1021862{col 26}{space 2} .0780539{col 37}{space 1}    1.31{col 46}{space 3}0.190{col 54}{space 4}-.0507966{col 67}{space 3}  .255169
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.7103505{col 26}{space 2} .0864898{col 37}{space 1}   -8.21{col 46}{space 3}0.000{col 54}{space 4}-.8798673{col 67}{space 3}-.5408337
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}  .648535{col 26}{space 2} .1079468{col 37}{space 1}    6.01{col 46}{space 3}0.000{col 54}{space 4} .4369632{col 67}{space 3} .8601067
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.577966{col 26}{space 2}  .084813{col 37}{space 1}  -18.61{col 46}{space 3}0.000{col 54}{space 4}-1.744197{col 67}{space 3}-1.411736
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0867938{col 26}{space 2} .1404097{col 37}{space 1}   -0.62{col 46}{space 3}0.536{col 54}{space 4}-.3619917{col 67}{space 3} .1884042
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-1.001467{col 26}{space 2} .1160791{col 37}{space 1}   -8.63{col 46}{space 3}0.000{col 54}{space 4}-1.228978{col 67}{space 3}-.7739562
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} -.782952{col 26}{space 2} .2040757{col 37}{space 1}   -3.84{col 46}{space 3}0.000{col 54}{space 4}-1.182933{col 67}{space 3} -.382971
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.8775309{col 26}{space 2} .0972641{col 37}{space 1}   -9.02{col 46}{space 3}0.000{col 54}{space 4}-1.068165{col 67}{space 3}-.6868968
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.3972088{col 26}{space 2} .0908955{col 37}{space 1}   -4.37{col 46}{space 3}0.000{col 54}{space 4}-.5753607{col 67}{space 3}-.2190569
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-1.509072{col 26}{space 2}  .168314{col 37}{space 1}   -8.97{col 46}{space 3}0.000{col 54}{space 4}-1.838962{col 67}{space 3}-1.179183
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0109905{col 26}{space 2}  .084441{col 37}{space 1}    0.13{col 46}{space 3}0.896{col 54}{space 4}-.1545108{col 67}{space 3} .1764918
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.6988872{col 26}{space 2} .0950124{col 37}{space 1}   -7.36{col 46}{space 3}0.000{col 54}{space 4}-.8851082{col 67}{space 3}-.5126663
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .6562832{col 26}{space 2} .0770911{col 37}{space 1}    8.51{col 46}{space 3}0.000{col 54}{space 4} .5051873{col 67}{space 3} .8073791
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .7288908{col 26}{space 2} .0833165{col 37}{space 1}    8.75{col 46}{space 3}0.000{col 54}{space 4} .5655934{col 67}{space 3} .8921882
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .5098719{col 26}{space 2} .1485795{col 37}{space 1}    3.43{col 46}{space 3}0.001{col 54}{space 4} .2186614{col 67}{space 3} .8010824
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .6628409{col 26}{space 2} .0669484{col 37}{space 1}    9.90{col 46}{space 3}0.000{col 54}{space 4} .5316244{col 67}{space 3} .7940574
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} 1.207938{col 26}{space 2} .0951704{col 37}{space 1}   12.69{col 46}{space 3}0.000{col 54}{space 4} 1.021407{col 67}{space 3} 1.394469
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .6574694{col 26}{space 2} .0658154{col 37}{space 1}    9.99{col 46}{space 3}0.000{col 54}{space 4} .5284736{col 67}{space 3} .7864651
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .9914254{col 26}{space 2} .1313906{col 37}{space 1}    7.55{col 46}{space 3}0.000{col 54}{space 4} .7339045{col 67}{space 3} 1.248946
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .7407384{col 26}{space 2} .0790557{col 37}{space 1}    9.37{col 46}{space 3}0.000{col 54}{space 4} .5857921{col 67}{space 3} .8956847
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .6675853{col 26}{space 2} .0638619{col 37}{space 1}   10.45{col 46}{space 3}0.000{col 54}{space 4} .5424182{col 67}{space 3} .7927524
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .7869013{col 26}{space 2} .0616117{col 37}{space 1}   12.77{col 46}{space 3}0.000{col 54}{space 4} .6661445{col 67}{space 3}  .907658
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0960453{col 26}{space 2} .0682816{col 37}{space 1}   -1.41{col 46}{space 3}0.160{col 54}{space 4}-.2298748{col 67}{space 3} .0377841
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0447426{col 26}{space 2} .0039226{col 37}{space 1}   11.41{col 46}{space 3}0.000{col 54}{space 4} .0370544{col 67}{space 3} .0524308
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0650279{col 26}{space 2} .0047646{col 37}{space 1}  -13.65{col 46}{space 3}0.000{col 54}{space 4}-.0743664{col 67}{space 3}-.0556895
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5376199{col 26}{space 2} .0174554{col 37}{space 1}  -30.80{col 46}{space 3}0.000{col 54}{space 4}-.5718319{col 67}{space 3}-.5034078
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .2766762{col 26}{space 2} .0245927{col 37}{space 1}   11.25{col 46}{space 3}0.000{col 54}{space 4} .2284754{col 67}{space 3} .3248771
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.059009{col 26}{space 2} .1125588{col 37}{space 1}  -18.29{col 46}{space 3}0.000{col 54}{space 4}-2.279621{col 67}{space 3}-1.838398
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    0.28
{txt}{col 10}Prob > chi2 =  {res}  0.5987

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.03332127

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(High ABC FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 5 - FDI from Low Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_lowwgb

. 
. gen inactive=inactive50_lowwgb

. 
. logit bribe_d active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-46052.652}  
Iteration 1:{space 3}log pseudolikelihood = {res:-41641.283}  
Iteration 2:{space 3}log pseudolikelihood = {res:-41142.492}  
Iteration 3:{space 3}log pseudolikelihood = {res:-41132.621}  
Iteration 4:{space 3}log pseudolikelihood = {res:-41132.582}  
Iteration 5:{space 3}log pseudolikelihood = {res:-41132.582}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,688
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   5587.54
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-41132.582{txt}{col 49}Pseudo R2{col 67}= {res}    0.1068

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0533271{col 26}{space 2} .0316187{col 37}{space 1}    1.69{col 46}{space 3}0.092{col 54}{space 4}-.0086444{col 67}{space 3} .1152985
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}  .163389{col 26}{space 2} .0370553{col 37}{space 1}    4.41{col 46}{space 3}0.000{col 54}{space 4}  .090762{col 67}{space 3}  .236016
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-1.076698{col 26}{space 2} .1580255{col 37}{space 1}   -6.81{col 46}{space 3}0.000{col 54}{space 4}-1.386422{col 67}{space 3}-.7669737
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.5789004{col 26}{space 2} .0907813{col 37}{space 1}   -6.38{col 46}{space 3}0.000{col 54}{space 4}-.7568285{col 67}{space 3}-.4009722
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-2.506324{col 26}{space 2} .1373154{col 37}{space 1}  -18.25{col 46}{space 3}0.000{col 54}{space 4}-2.775457{col 67}{space 3} -2.23719
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.7354658{col 26}{space 2}    .0921{col 37}{space 1}   -7.99{col 46}{space 3}0.000{col 54}{space 4}-.9159784{col 67}{space 3}-.5549531
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.3722933{col 26}{space 2} .1479518{col 37}{space 1}   -2.52{col 46}{space 3}0.012{col 54}{space 4}-.6622736{col 67}{space 3} -.082313
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1686227{col 26}{space 2} .1188184{col 37}{space 1}    1.42{col 46}{space 3}0.156{col 54}{space 4} -.064257{col 67}{space 3} .4015025
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-2.138158{col 26}{space 2} .1196297{col 37}{space 1}  -17.87{col 46}{space 3}0.000{col 54}{space 4}-2.372628{col 67}{space 3}-1.903688
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.2745852{col 26}{space 2} .1045463{col 37}{space 1}   -2.63{col 46}{space 3}0.009{col 54}{space 4}-.4794923{col 67}{space 3}-.0696782
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .2228679{col 26}{space 2} .1440142{col 37}{space 1}    1.55{col 46}{space 3}0.122{col 54}{space 4}-.0593948{col 67}{space 3} .5051307
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.5704297{col 26}{space 2} .1199503{col 37}{space 1}   -4.76{col 46}{space 3}0.000{col 54}{space 4} -.805528{col 67}{space 3}-.3353313
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.4845291{col 26}{space 2} .0762968{col 37}{space 1}   -6.35{col 46}{space 3}0.000{col 54}{space 4} -.634068{col 67}{space 3}-.3349901
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1305264{col 26}{space 2} .1185795{col 37}{space 1}   -1.10{col 46}{space 3}0.271{col 54}{space 4} -.362938{col 67}{space 3} .1018851
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .5401183{col 26}{space 2} .0780892{col 37}{space 1}    6.92{col 46}{space 3}0.000{col 54}{space 4} .3870662{col 67}{space 3} .6931704
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.9737155{col 26}{space 2} .1169145{col 37}{space 1}   -8.33{col 46}{space 3}0.000{col 54}{space 4}-1.202864{col 67}{space 3}-.7445672
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .3022493{col 26}{space 2} .1033697{col 37}{space 1}    2.92{col 46}{space 3}0.003{col 54}{space 4} .0996483{col 67}{space 3} .5048502
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.8783488{col 26}{space 2} .1009942{col 37}{space 1}   -8.70{col 46}{space 3}0.000{col 54}{space 4}-1.076294{col 67}{space 3}-.6804039
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-1.538905{col 26}{space 2} .0980357{col 37}{space 1}  -15.70{col 46}{space 3}0.000{col 54}{space 4}-1.731051{col 67}{space 3}-1.346758
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.6815976{col 26}{space 2} .0806152{col 37}{space 1}   -8.45{col 46}{space 3}0.000{col 54}{space 4}-.8396004{col 67}{space 3}-.5235948
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-2.407436{col 26}{space 2} .1823518{col 37}{space 1}  -13.20{col 46}{space 3}0.000{col 54}{space 4}-2.764839{col 67}{space 3}-2.050033
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .6586323{col 26}{space 2} .1618461{col 37}{space 1}    4.07{col 46}{space 3}0.000{col 54}{space 4} .3414197{col 67}{space 3} .9758449
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.0235095{col 26}{space 2} .0787547{col 37}{space 1}   -0.30{col 46}{space 3}0.765{col 54}{space 4}-.1778659{col 67}{space 3} .1308469
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-1.504986{col 26}{space 2} .0945576{col 37}{space 1}  -15.92{col 46}{space 3}0.000{col 54}{space 4}-1.690315{col 67}{space 3}-1.319656
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.8616058{col 26}{space 2} .1139116{col 37}{space 1}   -7.56{col 46}{space 3}0.000{col 54}{space 4}-1.084868{col 67}{space 3}-.6383431
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1307506{col 26}{space 2} .0792344{col 37}{space 1}    1.65{col 46}{space 3}0.099{col 54}{space 4}-.0245461{col 67}{space 3} .2860472
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.6870531{col 26}{space 2} .0874869{col 37}{space 1}   -7.85{col 46}{space 3}0.000{col 54}{space 4}-.8585242{col 67}{space 3} -.515582
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .6791275{col 26}{space 2} .1088835{col 37}{space 1}    6.24{col 46}{space 3}0.000{col 54}{space 4} .4657198{col 67}{space 3} .8925352
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.552626{col 26}{space 2} .0860181{col 37}{space 1}  -18.05{col 46}{space 3}0.000{col 54}{space 4}-1.721218{col 67}{space 3}-1.384034
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.0616208{col 26}{space 2} .1399502{col 37}{space 1}   -0.44{col 46}{space 3}0.660{col 54}{space 4}-.3359181{col 67}{space 3} .2126764
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.9788191{col 26}{space 2} .1179774{col 37}{space 1}   -8.30{col 46}{space 3}0.000{col 54}{space 4}-1.210051{col 67}{space 3}-.7475876
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.7391878{col 26}{space 2} .2050497{col 37}{space 1}   -3.60{col 46}{space 3}0.000{col 54}{space 4}-1.141078{col 67}{space 3}-.3372978
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.8599737{col 26}{space 2} .0986874{col 37}{space 1}   -8.71{col 46}{space 3}0.000{col 54}{space 4}-1.053397{col 67}{space 3}  -.66655
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.3824026{col 26}{space 2} .0934884{col 37}{space 1}   -4.09{col 46}{space 3}0.000{col 54}{space 4}-.5656365{col 67}{space 3}-.1991687
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-1.484814{col 26}{space 2} .1679609{col 37}{space 1}   -8.84{col 46}{space 3}0.000{col 54}{space 4}-1.814011{col 67}{space 3}-1.155616
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0189467{col 26}{space 2} .0858257{col 37}{space 1}    0.22{col 46}{space 3}0.825{col 54}{space 4}-.1492685{col 67}{space 3} .1871619
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} -.671299{col 26}{space 2} .0976051{col 37}{space 1}   -6.88{col 46}{space 3}0.000{col 54}{space 4}-.8626014{col 67}{space 3}-.4799966
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .6090519{col 26}{space 2} .0775213{col 37}{space 1}    7.86{col 46}{space 3}0.000{col 54}{space 4} .4571129{col 67}{space 3} .7609909
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .6837681{col 26}{space 2} .0839569{col 37}{space 1}    8.14{col 46}{space 3}0.000{col 54}{space 4} .5192156{col 67}{space 3} .8483206
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .4560433{col 26}{space 2} .1509814{col 37}{space 1}    3.02{col 46}{space 3}0.003{col 54}{space 4} .1601252{col 67}{space 3} .7519614
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .6400888{col 26}{space 2} .0670728{col 37}{space 1}    9.54{col 46}{space 3}0.000{col 54}{space 4} .5086286{col 67}{space 3}  .771549
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} 1.200027{col 26}{space 2}  .094943{col 37}{space 1}   12.64{col 46}{space 3}0.000{col 54}{space 4} 1.013942{col 67}{space 3} 1.386111
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .6450961{col 26}{space 2} .0651768{col 37}{space 1}    9.90{col 46}{space 3}0.000{col 54}{space 4}  .517352{col 67}{space 3} .7728402
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .9964391{col 26}{space 2} .1329977{col 37}{space 1}    7.49{col 46}{space 3}0.000{col 54}{space 4} .7357684{col 67}{space 3}  1.25711
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .7388057{col 26}{space 2} .0786876{col 37}{space 1}    9.39{col 46}{space 3}0.000{col 54}{space 4} .5845808{col 67}{space 3} .8930305
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .6648717{col 26}{space 2} .0634418{col 37}{space 1}   10.48{col 46}{space 3}0.000{col 54}{space 4}  .540528{col 67}{space 3} .7892155
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .7866272{col 26}{space 2} .0615299{col 37}{space 1}   12.78{col 46}{space 3}0.000{col 54}{space 4} .6660308{col 67}{space 3} .9072236
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0924109{col 26}{space 2} .0678907{col 37}{space 1}   -1.36{col 46}{space 3}0.173{col 54}{space 4}-.2254743{col 67}{space 3} .0406524
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0448214{col 26}{space 2} .0039295{col 37}{space 1}   11.41{col 46}{space 3}0.000{col 54}{space 4} .0371197{col 67}{space 3} .0525231
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0650905{col 26}{space 2} .0047721{col 37}{space 1}  -13.64{col 46}{space 3}0.000{col 54}{space 4}-.0744437{col 67}{space 3}-.0557372
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.5379714{col 26}{space 2} .0174712{col 37}{space 1}  -30.79{col 46}{space 3}0.000{col 54}{space 4}-.5722144{col 67}{space 3}-.5037285
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .2591346{col 26}{space 2} .0254886{col 37}{space 1}   10.17{col 46}{space 3}0.000{col 54}{space 4}  .209178{col 67}{space 3} .3090913
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-2.092426{col 26}{space 2} .1140454{col 37}{space 1}  -18.35{col 46}{space 3}0.000{col 54}{space 4}-2.315951{col 67}{space 3}-1.868901
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    5.97
{txt}{col 10}Prob > chi2 =  {res}  0.0145

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.11006189

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(Low ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 6 - Often Without Cash

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. logit often_without_cash active inactive cd* yd* age age2 working female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-58180.883}  
Iteration 1:{space 3}log pseudolikelihood = {res: -47792.03}  
Iteration 2:{space 3}log pseudolikelihood = {res:-47579.948}  
Iteration 3:{space 3}log pseudolikelihood = {res:-47577.897}  
Iteration 4:{space 3}log pseudolikelihood = {res:-47577.896}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}    87,383
{txt}{col 49}Wald chi2({res}50{txt}){col 67}= {res}   8158.39
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-47577.896{txt}{col 49}Pseudo R2{col 67}= {res}    0.1822

{txt}{ralign 78:(Std. Err. adjusted for {res:8,003} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.1144507{col 26}{space 2} .0313986{col 37}{space 1}   -3.65{col 46}{space 3}0.000{col 54}{space 4} -.175991{col 67}{space 3}-.0529105
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}  .071046{col 26}{space 2} .0390596{col 37}{space 1}    1.82{col 46}{space 3}0.069{col 54}{space 4}-.0055094{col 67}{space 3} .1476015
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-3.111291{col 26}{space 2} .1482273{col 37}{space 1}  -20.99{col 46}{space 3}0.000{col 54}{space 4}-3.401811{col 67}{space 3} -2.82077
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .6007849{col 26}{space 2}  .099644{col 37}{space 1}    6.03{col 46}{space 3}0.000{col 54}{space 4} .4054863{col 67}{space 3} .7960836
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.7894796{col 26}{space 2}  .113941{col 37}{space 1}   -6.93{col 46}{space 3}0.000{col 54}{space 4}  -1.0128{col 67}{space 3}-.5661594
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}  .979347{col 26}{space 2}  .108004{col 37}{space 1}    9.07{col 46}{space 3}0.000{col 54}{space 4}  .767663{col 67}{space 3} 1.191031
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} 1.224657{col 26}{space 2}  .197436{col 37}{space 1}    6.20{col 46}{space 3}0.000{col 54}{space 4} .8376895{col 67}{space 3} 1.611625
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .2817025{col 26}{space 2} .1444046{col 37}{space 1}    1.95{col 46}{space 3}0.051{col 54}{space 4}-.0013254{col 67}{space 3} .5647304
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}  -1.4274{col 26}{space 2} .1112959{col 37}{space 1}  -12.83{col 46}{space 3}0.000{col 54}{space 4}-1.645536{col 67}{space 3}-1.209264
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .5972504{col 26}{space 2} .1129633{col 37}{space 1}    5.29{col 46}{space 3}0.000{col 54}{space 4} .3758463{col 67}{space 3} .8186545
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2}-2.293663{col 26}{space 2} .1488554{col 37}{space 1}  -15.41{col 46}{space 3}0.000{col 54}{space 4}-2.585414{col 67}{space 3}-2.001912
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} 1.439884{col 26}{space 2} .1576086{col 37}{space 1}    9.14{col 46}{space 3}0.000{col 54}{space 4} 1.130977{col 67}{space 3} 1.748791
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-1.110553{col 26}{space 2} .0905673{col 37}{space 1}  -12.26{col 46}{space 3}0.000{col 54}{space 4}-1.288062{col 67}{space 3}-.9330445
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} 1.244839{col 26}{space 2} .1617661{col 37}{space 1}    7.70{col 46}{space 3}0.000{col 54}{space 4}  .927783{col 67}{space 3} 1.561894
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}-.2378448{col 26}{space 2} .0931786{col 37}{space 1}   -2.55{col 46}{space 3}0.011{col 54}{space 4}-.4204715{col 67}{space 3}-.0552181
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .0857607{col 26}{space 2} .1109708{col 37}{space 1}    0.77{col 46}{space 3}0.440{col 54}{space 4}-.1317381{col 67}{space 3} .3032595
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.8880272{col 26}{space 2} .1203709{col 37}{space 1}   -7.38{col 46}{space 3}0.000{col 54}{space 4} -1.12395{col 67}{space 3}-.6521045
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .2992561{col 26}{space 2} .1026545{col 37}{space 1}    2.92{col 46}{space 3}0.004{col 54}{space 4} .0980571{col 67}{space 3} .5004552
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .1268347{col 26}{space 2} .1101687{col 37}{space 1}    1.15{col 46}{space 3}0.250{col 54}{space 4}-.0890921{col 67}{space 3} .3427615
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .1641001{col 26}{space 2} .0973995{col 37}{space 1}    1.68{col 46}{space 3}0.092{col 54}{space 4}-.0267994{col 67}{space 3} .3549996
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-3.430803{col 26}{space 2} .1521964{col 37}{space 1}  -22.54{col 46}{space 3}0.000{col 54}{space 4}-3.729103{col 67}{space 3}-3.132504
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}-1.762031{col 26}{space 2} .1578108{col 37}{space 1}  -11.17{col 46}{space 3}0.000{col 54}{space 4}-2.071334{col 67}{space 3}-1.452727
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.4634965{col 26}{space 2} .0948444{col 37}{space 1}   -4.89{col 46}{space 3}0.000{col 54}{space 4}-.6493881{col 67}{space 3}-.2776048
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.6775958{col 26}{space 2} .0951208{col 37}{space 1}   -7.12{col 46}{space 3}0.000{col 54}{space 4}-.8640291{col 67}{space 3}-.4911625
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .7633059{col 26}{space 2} .1309636{col 37}{space 1}    5.83{col 46}{space 3}0.000{col 54}{space 4}  .506622{col 67}{space 3}  1.01999
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}-.9050921{col 26}{space 2} .0912107{col 37}{space 1}   -9.92{col 46}{space 3}0.000{col 54}{space 4}-1.083862{col 67}{space 3}-.7263224
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .8167818{col 26}{space 2}  .107974{col 37}{space 1}    7.56{col 46}{space 3}0.000{col 54}{space 4} .6051567{col 67}{space 3} 1.028407
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.4245023{col 26}{space 2} .1237507{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.6670492{col 67}{space 3}-.1819554
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-1.600542{col 26}{space 2} .0905186{col 37}{space 1}  -17.68{col 46}{space 3}0.000{col 54}{space 4}-1.777955{col 67}{space 3}-1.423129
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-1.366278{col 26}{space 2} .1799614{col 37}{space 1}   -7.59{col 46}{space 3}0.000{col 54}{space 4}-1.718996{col 67}{space 3}-1.013561
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.9368357{col 26}{space 2} .1319886{col 37}{space 1}   -7.10{col 46}{space 3}0.000{col 54}{space 4}-1.195529{col 67}{space 3}-.6781427
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}-.5792177{col 26}{space 2} .1507886{col 37}{space 1}   -3.84{col 46}{space 3}0.000{col 54}{space 4}-.8747579{col 67}{space 3}-.2836775
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2}-.2865881{col 26}{space 2} .0973246{col 37}{space 1}   -2.94{col 46}{space 3}0.003{col 54}{space 4}-.4773408{col 67}{space 3}-.0958353
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} 1.566273{col 26}{space 2} .1346853{col 37}{space 1}   11.63{col 46}{space 3}0.000{col 54}{space 4} 1.302295{col 67}{space 3} 1.830252
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} -1.98848{col 26}{space 2} .1292487{col 37}{space 1}  -15.38{col 46}{space 3}0.000{col 54}{space 4}-2.241803{col 67}{space 3}-1.735157
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.0693217{col 26}{space 2}  .103473{col 37}{space 1}   -0.67{col 46}{space 3}0.503{col 54}{space 4}-.2721251{col 67}{space 3} .1334816
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2} -.373203{col 26}{space 2} .1020455{col 37}{space 1}   -3.66{col 46}{space 3}0.000{col 54}{space 4}-.5732084{col 67}{space 3}-.1731975
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0722768{col 26}{space 2}  .059855{col 37}{space 1}   -1.21{col 46}{space 3}0.227{col 54}{space 4}-.1895904{col 67}{space 3} .0450369
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.0292758{col 26}{space 2} .0665705{col 37}{space 1}   -0.44{col 46}{space 3}0.660{col 54}{space 4}-.1597516{col 67}{space 3}    .1012
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} -.027895{col 26}{space 2} .0531698{col 37}{space 1}   -0.52{col 46}{space 3}0.600{col 54}{space 4}-.1321059{col 67}{space 3} .0763158
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .5402203{col 26}{space 2} .1334447{col 37}{space 1}    4.05{col 46}{space 3}0.000{col 54}{space 4} .2786736{col 67}{space 3} .8017671
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0435946{col 26}{space 2}  .063681{col 37}{space 1}    0.68{col 46}{space 3}0.494{col 54}{space 4}-.0812179{col 67}{space 3} .1684071
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0869979{col 26}{space 2} .0542129{col 37}{space 1}    1.60{col 46}{space 3}0.109{col 54}{space 4}-.0192574{col 67}{space 3} .1932532
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .2720317{col 26}{space 2} .0647868{col 37}{space 1}    4.20{col 46}{space 3}0.000{col 54}{space 4} .1450518{col 67}{space 3} .3990116
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1543803{col 26}{space 2} .0567474{col 37}{space 1}   -2.72{col 46}{space 3}0.007{col 54}{space 4}-.2656031{col 67}{space 3}-.0431574
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0335411{col 26}{space 2} .0029405{col 37}{space 1}   11.41{col 46}{space 3}0.000{col 54}{space 4} .0277777{col 67}{space 3} .0393045
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0330713{col 26}{space 2} .0032464{col 37}{space 1}  -10.19{col 46}{space 3}0.000{col 54}{space 4}-.0394341{col 67}{space 3}-.0267086
{txt}{space 5}working {c |}{col 14}{res}{space 2}-.4291736{col 26}{space 2} .0196819{col 37}{space 1}  -21.81{col 46}{space 3}0.000{col 54}{space 4}-.4677495{col 67}{space 3}-.3905977
{txt}{space 6}female {c |}{col 14}{res}{space 2}  .021661{col 26}{space 2} .0144308{col 37}{space 1}    1.50{col 46}{space 3}0.133{col 54}{space 4}-.0066229{col 67}{space 3} .0499449
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.5133232{col 26}{space 2} .0254567{col 37}{space 1}  -20.16{col 46}{space 3}0.000{col 54}{space 4}-.5632173{col 67}{space 3} -.463429
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .7423903{col 26}{space 2} .1091065{col 37}{space 1}    6.80{col 46}{space 3}0.000{col 54}{space 4} .5285456{col 67}{space 3} .9562351
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[often_without_cash]active - [often_without_cash]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}   20.17
{txt}{col 10}Prob > chi2 =  {res}  0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.18549677

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(DV Without Cash) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. 
. 
. *Model 7 - Working

. 
. logit working active inactive cd* yd* age age2 female urban, cl(cluster)

{txt}note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-66228.212}  
Iteration 1:{space 3}log pseudolikelihood = {res:-58597.041}  
Iteration 2:{space 3}log pseudolikelihood = {res: -58330.06}  
Iteration 3:{space 3}log pseudolikelihood = {res:-58329.102}  
Iteration 4:{space 3}log pseudolikelihood = {res:-58329.102}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}   100,239
{txt}{col 49}Wald chi2({res}52{txt}){col 67}= {res}   7878.31
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-58329.102{txt}{col 49}Pseudo R2{col 67}= {res}    0.1193

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .2217481{col 26}{space 2} .0278178{col 37}{space 1}    7.97{col 46}{space 3}0.000{col 54}{space 4} .1672262{col 67}{space 3} .2762699
{txt}{space 4}inactive {c |}{col 14}{res}{space 2}  .030654{col 26}{space 2} .0360414{col 37}{space 1}    0.85{col 46}{space 3}0.395{col 54}{space 4}-.0399859{col 67}{space 3} .1012938
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2} .3074547{col 26}{space 2} .0915795{col 37}{space 1}    3.36{col 46}{space 3}0.001{col 54}{space 4} .1279622{col 67}{space 3} .4869471
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .1130136{col 26}{space 2} .0950372{col 37}{space 1}    1.19{col 46}{space 3}0.234{col 54}{space 4}-.0732558{col 67}{space 3}  .299283
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.0158556{col 26}{space 2}  .111138{col 37}{space 1}   -0.14{col 46}{space 3}0.887{col 54}{space 4}-.2336821{col 67}{space 3}  .201971
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.8553205{col 26}{space 2} .1027475{col 37}{space 1}   -8.32{col 46}{space 3}0.000{col 54}{space 4}-1.056702{col 67}{space 3}-.6539391
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.8657448{col 26}{space 2} .1730789{col 37}{space 1}   -5.00{col 46}{space 3}0.000{col 54}{space 4}-1.204973{col 67}{space 3}-.5265163
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .1666489{col 26}{space 2} .1067981{col 37}{space 1}    1.56{col 46}{space 3}0.119{col 54}{space 4}-.0426716{col 67}{space 3} .3759694
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .4044214{col 26}{space 2} .0810923{col 37}{space 1}    4.99{col 46}{space 3}0.000{col 54}{space 4} .2454834{col 67}{space 3} .5633594
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.4569883{col 26}{space 2} .1069133{col 37}{space 1}   -4.27{col 46}{space 3}0.000{col 54}{space 4}-.6665345{col 67}{space 3} -.247442
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .6275433{col 26}{space 2} .0983341{col 37}{space 1}    6.38{col 46}{space 3}0.000{col 54}{space 4} .4348121{col 67}{space 3} .8202746
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.2678606{col 26}{space 2} .1162731{col 37}{space 1}   -2.30{col 46}{space 3}0.021{col 54}{space 4}-.4957517{col 67}{space 3}-.0399695
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}  1.11784{col 26}{space 2} .0741953{col 37}{space 1}   15.07{col 46}{space 3}0.000{col 54}{space 4} .9724198{col 67}{space 3}  1.26326
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-1.070801{col 26}{space 2} .1417803{col 37}{space 1}   -7.55{col 46}{space 3}0.000{col 54}{space 4}-1.348686{col 67}{space 3}-.7929172
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .7716094{col 26}{space 2}  .077985{col 37}{space 1}    9.89{col 46}{space 3}0.000{col 54}{space 4} .6187616{col 67}{space 3} .9244572
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.6031207{col 26}{space 2}  .109604{col 37}{space 1}   -5.50{col 46}{space 3}0.000{col 54}{space 4}-.8179407{col 67}{space 3}-.3883007
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.2900111{col 26}{space 2} .0989489{col 37}{space 1}   -2.93{col 46}{space 3}0.003{col 54}{space 4}-.4839474{col 67}{space 3}-.0960748
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .9069588{col 26}{space 2} .1002916{col 37}{space 1}    9.04{col 46}{space 3}0.000{col 54}{space 4}  .710391{col 67}{space 3} 1.103527
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .1725801{col 26}{space 2} .1005541{col 37}{space 1}    1.72{col 46}{space 3}0.086{col 54}{space 4}-.0245024{col 67}{space 3} .3696625
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.8182118{col 26}{space 2} .0836734{col 37}{space 1}   -9.78{col 46}{space 3}0.000{col 54}{space 4}-.9822086{col 67}{space 3} -.654215
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} 1.388813{col 26}{space 2} .0904814{col 37}{space 1}   15.35{col 46}{space 3}0.000{col 54}{space 4} 1.211473{col 67}{space 3} 1.566154
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .6208393{col 26}{space 2} .1434183{col 37}{space 1}    4.33{col 46}{space 3}0.000{col 54}{space 4} .3397447{col 67}{space 3}  .901934
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.0745051{col 26}{space 2} .0792425{col 37}{space 1}   -0.94{col 46}{space 3}0.347{col 54}{space 4}-.2298177{col 67}{space 3} .0808074
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .6238693{col 26}{space 2} .0805788{col 37}{space 1}    7.74{col 46}{space 3}0.000{col 54}{space 4} .4659378{col 67}{space 3} .7818008
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.7556996{col 26}{space 2} .1084991{col 37}{space 1}   -6.97{col 46}{space 3}0.000{col 54}{space 4}-.9683539{col 67}{space 3}-.5430452
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}  .827617{col 26}{space 2} .0763888{col 37}{space 1}   10.83{col 46}{space 3}0.000{col 54}{space 4} .6778977{col 67}{space 3} .9773362
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.2028881{col 26}{space 2} .0774015{col 37}{space 1}   -2.62{col 46}{space 3}0.009{col 54}{space 4}-.3545923{col 67}{space 3} -.051184
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.1012803{col 26}{space 2}  .119438{col 37}{space 1}   -0.85{col 46}{space 3}0.396{col 54}{space 4}-.3353744{col 67}{space 3} .1328139
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} .5957853{col 26}{space 2} .0749343{col 37}{space 1}    7.95{col 46}{space 3}0.000{col 54}{space 4} .4489168{col 67}{space 3} .7426538
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .5912755{col 26}{space 2} .1111281{col 37}{space 1}    5.32{col 46}{space 3}0.000{col 54}{space 4} .3734685{col 67}{space 3} .8090825
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .1840209{col 26}{space 2} .1362915{col 37}{space 1}    1.35{col 46}{space 3}0.177{col 54}{space 4}-.0831056{col 67}{space 3} .4511474
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2} .6939878{col 26}{space 2} .1262387{col 37}{space 1}    5.50{col 46}{space 3}0.000{col 54}{space 4} .4465645{col 67}{space 3} .9414112
{txt}{space 8}cd31 {c |}{col 14}{res}{space 2} .7915544{col 26}{space 2}    .0944{col 37}{space 1}    8.39{col 46}{space 3}0.000{col 54}{space 4} .6065338{col 67}{space 3} .9765749
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.4072144{col 26}{space 2} .1148692{col 37}{space 1}   -3.55{col 46}{space 3}0.000{col 54}{space 4}-.6323539{col 67}{space 3}-.1820748
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} .2487457{col 26}{space 2} .1046328{col 37}{space 1}    2.38{col 46}{space 3}0.017{col 54}{space 4} .0436692{col 67}{space 3} .4538221
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .8859016{col 26}{space 2} .0892348{col 37}{space 1}    9.93{col 46}{space 3}0.000{col 54}{space 4} .7110047{col 67}{space 3} 1.060798
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0481908{col 26}{space 2}  .099515{col 37}{space 1}   -0.48{col 46}{space 3}0.628{col 54}{space 4}-.2432365{col 67}{space 3} .1468549
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2}-.0775392{col 26}{space 2} .0640371{col 37}{space 1}   -1.21{col 46}{space 3}0.226{col 54}{space 4}-.2030495{col 67}{space 3} .0479711
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}-.1145616{col 26}{space 2} .0757321{col 37}{space 1}   -1.51{col 46}{space 3}0.130{col 54}{space 4}-.2629937{col 67}{space 3} .0338705
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .5266518{col 26}{space 2} .1495118{col 37}{space 1}    3.52{col 46}{space 3}0.000{col 54}{space 4} .2336142{col 67}{space 3} .8196895
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} -.064949{col 26}{space 2} .0557155{col 37}{space 1}   -1.17{col 46}{space 3}0.244{col 54}{space 4}-.1741492{col 67}{space 3} .0442513
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.2863596{col 26}{space 2} .0661898{col 37}{space 1}   -4.33{col 46}{space 3}0.000{col 54}{space 4}-.4160893{col 67}{space 3}-.1566299
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.1430721{col 26}{space 2} .0495059{col 37}{space 1}   -2.89{col 46}{space 3}0.004{col 54}{space 4}-.2401019{col 67}{space 3}-.0460424
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} -.390069{col 26}{space 2}  .113599{col 37}{space 1}   -3.43{col 46}{space 3}0.001{col 54}{space 4}-.6127189{col 67}{space 3}-.1674191
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}-.4515067{col 26}{space 2} .0595816{col 37}{space 1}   -7.58{col 46}{space 3}0.000{col 54}{space 4}-.5682846{col 67}{space 3}-.3347289
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.1366817{col 26}{space 2} .0511437{col 37}{space 1}   -2.67{col 46}{space 3}0.008{col 54}{space 4}-.2369216{col 67}{space 3}-.0364418
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.3177752{col 26}{space 2} .0464563{col 37}{space 1}   -6.84{col 46}{space 3}0.000{col 54}{space 4}-.4088278{col 67}{space 3}-.2267226
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .1329411{col 26}{space 2} .0529834{col 37}{space 1}    2.51{col 46}{space 3}0.012{col 54}{space 4} .0290956{col 67}{space 3} .2367865
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .2053462{col 26}{space 2} .0043816{col 37}{space 1}   46.87{col 46}{space 3}0.000{col 54}{space 4} .1967584{col 67}{space 3}  .213934
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.2426655{col 26}{space 2}  .005312{col 37}{space 1}  -45.68{col 46}{space 3}0.000{col 54}{space 4}-.2530768{col 67}{space 3}-.2322543
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.6431502{col 26}{space 2} .0142367{col 37}{space 1}  -45.18{col 46}{space 3}0.000{col 54}{space 4}-.6710536{col 67}{space 3}-.6152468
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .3713358{col 26}{space 2} .0232459{col 37}{space 1}   15.97{col 46}{space 3}0.000{col 54}{space 4} .3257746{col 67}{space 3}  .416897
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-4.490057{col 26}{space 2} .1190569{col 37}{space 1}  -37.71{col 46}{space 3}0.000{col 54}{space 4}-4.723404{col 67}{space 3}-4.256709
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 2}Note: 1 failure and 0 successes completely determined.{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[working]active - [working]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}   25.76
{txt}{col 10}Prob > chi2 =  {res}  0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.19109409

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A3.doc, append dec(3) ctitle(DV Working) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A3.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. 
. 
. *** Table A4 - Multi-level mixed effects

. 
. 
. 
. *Model 1 - All FDI

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. mixed bribe_d active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-41131.328
{txt}Iteration 1:{col 16}log likelihood = {res}-39332.153
{txt}Iteration 2:{col 16}log likelihood = {res}-38927.382
{txt}Iteration 3:{col 16}log likelihood = {res} -38773.49
{txt}Iteration 4:{col 16}log likelihood = {res}-38700.984
{txt}Iteration 5:{col 16}log likelihood = {res}-38662.444
{txt}Iteration 6:{col 16}log likelihood = {res}-38640.304
{txt}Iteration 7:{col 16}log likelihood = {res}-38626.879
{txt}Iteration 8:{col 16}log likelihood = {res}-38618.405
{txt}Iteration 9:{col 16}log likelihood = {res}-38612.891
{txt}Iteration 10:{col 16}log likelihood = {res}-38609.213
{txt}Iteration 11:{col 16}log likelihood = {res}-38606.709
{txt}Iteration 12:{col 16}log likelihood = {res}-38604.975
{txt}Iteration 13:{col 16}log likelihood = {res}-38603.756
{txt}Iteration 14:{col 16}log likelihood = {res}-38602.885
{txt}Iteration 15:{col 16}log likelihood = {res}-38602.256
{txt}Iteration 16:{col 16}log likelihood = {res}-38601.794
{txt}Iteration 17:{col 16}log likelihood = {res}-38601.451
{txt}Iteration 18:{col 16}log likelihood = {res}-38601.192
{txt}Iteration 19:{col 16}log likelihood = {res}-38600.995
{txt}Iteration 20:{col 16}log likelihood = {res}-38600.841

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,975

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,856.4{col 53}   10,060
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.5{col 53}      607
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res}  5635.93
{txt}Log likelihood = {res}-38600.841{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0108918{col 26}{space 2} .0041225{col 37}{space 1}    2.64{col 46}{space 3}0.008{col 54}{space 4}  .002812{col 67}{space 3} .0189717
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0243389{col 26}{space 2} .0048074{col 37}{space 1}    5.06{col 46}{space 3}0.000{col 54}{space 4} .0149166{col 67}{space 3} .0337613
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.1348656{col 26}{space 2} .0173022{col 37}{space 1}   -7.79{col 46}{space 3}0.000{col 54}{space 4}-.1687772{col 67}{space 3}-.1009539
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0728334{col 26}{space 2} .0142473{col 37}{space 1}   -5.11{col 46}{space 3}0.000{col 54}{space 4}-.1007575{col 67}{space 3}-.0449092
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.2151853{col 26}{space 2} .0151049{col 37}{space 1}  -14.25{col 46}{space 3}0.000{col 54}{space 4}-.2447904{col 67}{space 3}-.1855803
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2} -.085487{col 26}{space 2} .0147708{col 37}{space 1}   -5.79{col 46}{space 3}0.000{col 54}{space 4}-.1144372{col 67}{space 3}-.0565368
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.0573011{col 26}{space 2} .0223619{col 37}{space 1}   -2.56{col 46}{space 3}0.010{col 54}{space 4}-.1011296{col 67}{space 3}-.0134727
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0614839{col 26}{space 2} .0169487{col 37}{space 1}    3.63{col 46}{space 3}0.000{col 54}{space 4}  .028265{col 67}{space 3} .0947027
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.2016827{col 26}{space 2} .0162247{col 37}{space 1}  -12.43{col 46}{space 3}0.000{col 54}{space 4}-.2334826{col 67}{space 3}-.1698828
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.0254063{col 26}{space 2} .0172292{col 37}{space 1}   -1.47{col 46}{space 3}0.140{col 54}{space 4}-.0591749{col 67}{space 3} .0083623
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0624149{col 26}{space 2} .0179658{col 37}{space 1}    3.47{col 46}{space 3}0.001{col 54}{space 4} .0272026{col 67}{space 3} .0976271
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0666216{col 26}{space 2} .0233701{col 37}{space 1}   -2.85{col 46}{space 3}0.004{col 54}{space 4}-.1124261{col 67}{space 3} -.020817
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} -.064548{col 26}{space 2}  .013052{col 37}{space 1}   -4.95{col 46}{space 3}0.000{col 54}{space 4}-.0901295{col 67}{space 3}-.0389665
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0093687{col 26}{space 2} .0201416{col 37}{space 1}   -0.47{col 46}{space 3}0.642{col 54}{space 4}-.0488454{col 67}{space 3}  .030108
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1208894{col 26}{space 2} .0135363{col 37}{space 1}    8.93{col 46}{space 3}0.000{col 54}{space 4} .0943587{col 67}{space 3} .1474201
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.1095959{col 26}{space 2} .0163644{col 37}{space 1}   -6.70{col 46}{space 3}0.000{col 54}{space 4}-.1416695{col 67}{space 3}-.0775222
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}  .082447{col 26}{space 2} .0169593{col 37}{space 1}    4.86{col 46}{space 3}0.000{col 54}{space 4} .0492073{col 67}{space 3} .1156866
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.1081992{col 26}{space 2}  .013984{col 37}{space 1}   -7.74{col 46}{space 3}0.000{col 54}{space 4}-.1356074{col 67}{space 3}-.0807911
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1796486{col 26}{space 2}  .014751{col 37}{space 1}  -12.18{col 46}{space 3}0.000{col 54}{space 4}-.2085601{col 67}{space 3}-.1507372
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0917084{col 26}{space 2} .0131729{col 37}{space 1}   -6.96{col 46}{space 3}0.000{col 54}{space 4}-.1175267{col 67}{space 3}  -.06589
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -.194563{col 26}{space 2} .0159598{col 37}{space 1}  -12.19{col 46}{space 3}0.000{col 54}{space 4}-.2258437{col 67}{space 3}-.1632823
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1613993{col 26}{space 2} .0228259{col 37}{space 1}    7.07{col 46}{space 3}0.000{col 54}{space 4} .1166613{col 67}{space 3} .2061373
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0086762{col 26}{space 2} .0136504{col 37}{space 1}    0.64{col 46}{space 3}0.525{col 54}{space 4}-.0180782{col 67}{space 3} .0354306
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1581438{col 26}{space 2} .0146687{col 37}{space 1}  -10.78{col 46}{space 3}0.000{col 54}{space 4}-.1868939{col 67}{space 3}-.1293938
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.1027253{col 26}{space 2} .0165674{col 37}{space 1}   -6.20{col 46}{space 3}0.000{col 54}{space 4}-.1351969{col 67}{space 3}-.0702538
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0455161{col 26}{space 2} .0127467{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4} .0205331{col 67}{space 3} .0704991
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} -.093864{col 26}{space 2} .0140389{col 37}{space 1}   -6.69{col 46}{space 3}0.000{col 54}{space 4}-.1213797{col 67}{space 3}-.0663482
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1465306{col 26}{space 2} .0180897{col 37}{space 1}    8.10{col 46}{space 3}0.000{col 54}{space 4} .1110755{col 67}{space 3} .1819857
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1722585{col 26}{space 2} .0125783{col 37}{space 1}  -13.69{col 46}{space 3}0.000{col 54}{space 4}-.1969115{col 67}{space 3}-.1476054
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0345157{col 26}{space 2} .0220667{col 37}{space 1}    1.56{col 46}{space 3}0.118{col 54}{space 4}-.0087342{col 67}{space 3} .0777656
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.1097924{col 26}{space 2} .0212825{col 37}{space 1}   -5.16{col 46}{space 3}0.000{col 54}{space 4}-.1515053{col 67}{space 3}-.0680795
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1074796{col 26}{space 2} .0139909{col 37}{space 1}   -7.68{col 46}{space 3}0.000{col 54}{space 4}-.1349012{col 67}{space 3} -.080058
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0563415{col 26}{space 2} .0159488{col 37}{space 1}   -3.53{col 46}{space 3}0.000{col 54}{space 4}-.0876006{col 67}{space 3}-.0250823
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1616909{col 26}{space 2} .0197862{col 37}{space 1}   -8.17{col 46}{space 3}0.000{col 54}{space 4} -.200471{col 67}{space 3}-.1229107
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}  .023833{col 26}{space 2} .0144294{col 37}{space 1}    1.65{col 46}{space 3}0.099{col 54}{space 4}-.0044481{col 67}{space 3} .0521141
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1083006{col 26}{space 2} .0147707{col 37}{space 1}   -7.33{col 46}{space 3}0.000{col 54}{space 4}-.1372506{col 67}{space 3}-.0793507
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .0776756{col 26}{space 2} .0081203{col 37}{space 1}    9.57{col 46}{space 3}0.000{col 54}{space 4} .0617601{col 67}{space 3} .0935911
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0937817{col 26}{space 2} .0087178{col 37}{space 1}   10.76{col 46}{space 3}0.000{col 54}{space 4} .0766952{col 67}{space 3} .1108682
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0731776{col 26}{space 2} .0209649{col 37}{space 1}    3.49{col 46}{space 3}0.000{col 54}{space 4} .0320871{col 67}{space 3} .1142682
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0858159{col 26}{space 2} .0070945{col 37}{space 1}   12.10{col 46}{space 3}0.000{col 54}{space 4} .0719108{col 67}{space 3} .0997209
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1300161{col 26}{space 2} .0094859{col 37}{space 1}   13.71{col 46}{space 3}0.000{col 54}{space 4}  .111424{col 67}{space 3} .1486082
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0821185{col 26}{space 2}  .006467{col 37}{space 1}   12.70{col 46}{space 3}0.000{col 54}{space 4} .0694435{col 67}{space 3} .0947936
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1721998{col 26}{space 2} .0157283{col 37}{space 1}   10.95{col 46}{space 3}0.000{col 54}{space 4} .1413729{col 67}{space 3} .2030266
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0932325{col 26}{space 2} .0083796{col 37}{space 1}   11.13{col 46}{space 3}0.000{col 54}{space 4} .0768087{col 67}{space 3} .1096563
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0857196{col 26}{space 2} .0066976{col 37}{space 1}   12.80{col 46}{space 3}0.000{col 54}{space 4} .0725925{col 67}{space 3} .0988467
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .1086474{col 26}{space 2} .0064612{col 37}{space 1}   16.82{col 46}{space 3}0.000{col 54}{space 4} .0959838{col 67}{space 3} .1213111
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .0001305{col 26}{space 2} .0067278{col 37}{space 1}    0.02{col 46}{space 3}0.985{col 54}{space 4}-.0130557{col 67}{space 3} .0133168
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0039759{col 26}{space 2} .0003862{col 37}{space 1}   10.30{col 46}{space 3}0.000{col 54}{space 4}  .003219{col 67}{space 3} .0047328
{txt}{space 8}age2 {c |}{col 14}{res}{space 2} -.005739{col 26}{space 2} .0004327{col 37}{space 1}  -13.26{col 46}{space 3}0.000{col 54}{space 4} -.006587{col 67}{space 3} -.004891
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0690122{col 26}{space 2} .0022113{col 37}{space 1}  -31.21{col 46}{space 3}0.000{col 54}{space 4}-.0733464{col 67}{space 3}-.0646781
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0326739{col 26}{space 2} .0033239{col 37}{space 1}    9.83{col 46}{space 3}0.000{col 54}{space 4} .0261591{col 67}{space 3} .0391886
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1337498{col 26}{space 2} .0149012{col 37}{space 1}    8.98{col 46}{space 3}0.000{col 54}{space 4}  .104544{col 67}{space 3} .1629555
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 5.57e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0092233{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1206243{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}1568.71{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    7.18
{txt}{col 10}Prob > chi2 =  {res}  0.0074

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01344708

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(All FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 2 - FDI from High Corruption Countries

. 
. gen active=active50_highcorr

. 
. gen inactive=inactive50_highcorr

. 
. mixed bribe_d active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-41128.095
{txt}Iteration 1:{col 16}log likelihood = {res}-39329.315
{txt}Iteration 2:{col 16}log likelihood = {res}-38924.403
{txt}Iteration 3:{col 16}log likelihood = {res}-38770.401
{txt}Iteration 4:{col 16}log likelihood = {res}-38697.815
{txt}Iteration 5:{col 16}log likelihood = {res}-38659.216
{txt}Iteration 6:{col 16}log likelihood = {res}-38637.031
{txt}Iteration 7:{col 16}log likelihood = {res}-38623.572
{txt}Iteration 8:{col 16}log likelihood = {res}-38615.073
{txt}Iteration 9:{col 16}log likelihood = {res}-38609.538
{txt}Iteration 10:{col 16}log likelihood = {res}-38605.845
{txt}Iteration 11:{col 16}log likelihood = {res} -38603.33
{txt}Iteration 12:{col 16}log likelihood = {res}-38601.587
{txt}Iteration 13:{col 16}log likelihood = {res} -38600.36
{txt}Iteration 14:{col 16}log likelihood = {res}-38599.484
{txt}Iteration 15:{col 16}log likelihood = {res}-38598.851
{txt}Iteration 16:{col 16}log likelihood = {res}-38598.386
{txt}Iteration 17:{col 16}log likelihood = {res} -38598.04
{txt}Iteration 18:{col 16}log likelihood = {res} -38597.78
{txt}Iteration 19:{col 16}log likelihood = {res} -38597.58
{txt}Iteration 20:{col 16}log likelihood = {res}-38597.425

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,975

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,856.4{col 53}   10,060
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.5{col 53}      607
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res}  5644.57
{txt}Log likelihood = {res}-38597.425{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0163422{col 26}{space 2} .0048321{col 37}{space 1}    3.38{col 46}{space 3}0.001{col 54}{space 4} .0068715{col 67}{space 3} .0258129
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0296717{col 26}{space 2} .0055178{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .0188569{col 67}{space 3} .0404865
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.1280857{col 26}{space 2} .0173234{col 37}{space 1}   -7.39{col 46}{space 3}0.000{col 54}{space 4}-.1620389{col 67}{space 3}-.0941325
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0669276{col 26}{space 2} .0143259{col 37}{space 1}   -4.67{col 46}{space 3}0.000{col 54}{space 4}-.0950059{col 67}{space 3}-.0388492
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.2113423{col 26}{space 2} .0151468{col 37}{space 1}  -13.95{col 46}{space 3}0.000{col 54}{space 4}-.2410295{col 67}{space 3}-.1816551
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0828736{col 26}{space 2} .0147852{col 37}{space 1}   -5.61{col 46}{space 3}0.000{col 54}{space 4}-.1118521{col 67}{space 3}-.0538952
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.0574577{col 26}{space 2} .0223548{col 37}{space 1}   -2.57{col 46}{space 3}0.010{col 54}{space 4}-.1012723{col 67}{space 3} -.013643
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0637313{col 26}{space 2} .0169269{col 37}{space 1}    3.77{col 46}{space 3}0.000{col 54}{space 4} .0305551{col 67}{space 3} .0969074
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.2022835{col 26}{space 2} .0162302{col 37}{space 1}  -12.46{col 46}{space 3}0.000{col 54}{space 4}-.2340941{col 67}{space 3} -.170473
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.0200346{col 26}{space 2} .0173163{col 37}{space 1}   -1.16{col 46}{space 3}0.247{col 54}{space 4} -.053974{col 67}{space 3} .0139048
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0719272{col 26}{space 2} .0179416{col 37}{space 1}    4.01{col 46}{space 3}0.000{col 54}{space 4} .0367623{col 67}{space 3}  .107092
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0639794{col 26}{space 2} .0233743{col 37}{space 1}   -2.74{col 46}{space 3}0.006{col 54}{space 4}-.1097922{col 67}{space 3}-.0181665
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0622541{col 26}{space 2} .0130595{col 37}{space 1}   -4.77{col 46}{space 3}0.000{col 54}{space 4}-.0878503{col 67}{space 3}-.0366578
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0064299{col 26}{space 2} .0201386{col 37}{space 1}   -0.32{col 46}{space 3}0.750{col 54}{space 4}-.0459009{col 67}{space 3} .0330411
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1275263{col 26}{space 2}  .013554{col 37}{space 1}    9.41{col 46}{space 3}0.000{col 54}{space 4}  .100961{col 67}{space 3} .1540917
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.1073346{col 26}{space 2} .0163793{col 37}{space 1}   -6.55{col 46}{space 3}0.000{col 54}{space 4}-.1394375{col 67}{space 3}-.0752317
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .0827947{col 26}{space 2} .0169729{col 37}{space 1}    4.88{col 46}{space 3}0.000{col 54}{space 4} .0495285{col 67}{space 3} .1160609
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.1011307{col 26}{space 2} .0140853{col 37}{space 1}   -7.18{col 46}{space 3}0.000{col 54}{space 4}-.1287374{col 67}{space 3} -.073524
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1775214{col 26}{space 2} .0148155{col 37}{space 1}  -11.98{col 46}{space 3}0.000{col 54}{space 4}-.2065593{col 67}{space 3}-.1484836
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0894052{col 26}{space 2} .0132168{col 37}{space 1}   -6.76{col 46}{space 3}0.000{col 54}{space 4}-.1153097{col 67}{space 3}-.0635008
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1818321{col 26}{space 2} .0160381{col 37}{space 1}  -11.34{col 46}{space 3}0.000{col 54}{space 4}-.2132662{col 67}{space 3} -.150398
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1723657{col 26}{space 2} .0229113{col 37}{space 1}    7.52{col 46}{space 3}0.000{col 54}{space 4} .1274605{col 67}{space 3}  .217271
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0157524{col 26}{space 2} .0137515{col 37}{space 1}    1.15{col 46}{space 3}0.252{col 54}{space 4}-.0112002{col 67}{space 3} .0427049
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1571992{col 26}{space 2} .0146689{col 37}{space 1}  -10.72{col 46}{space 3}0.000{col 54}{space 4}-.1859498{col 67}{space 3}-.1284486
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} -.097563{col 26}{space 2} .0165917{col 37}{space 1}   -5.88{col 46}{space 3}0.000{col 54}{space 4}-.1300821{col 67}{space 3}-.0650438
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0509601{col 26}{space 2}  .012819{col 37}{space 1}    3.98{col 46}{space 3}0.000{col 54}{space 4} .0258354{col 67}{space 3} .0760847
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0863833{col 26}{space 2}  .014129{col 37}{space 1}   -6.11{col 46}{space 3}0.000{col 54}{space 4}-.1140756{col 67}{space 3} -.058691
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}  .150074{col 26}{space 2} .0180969{col 37}{space 1}    8.29{col 46}{space 3}0.000{col 54}{space 4} .1146048{col 67}{space 3} .1855433
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}  -.16164{col 26}{space 2}  .012777{col 37}{space 1}  -12.65{col 46}{space 3}0.000{col 54}{space 4}-.1866824{col 67}{space 3}-.1365976
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0362216{col 26}{space 2} .0220527{col 37}{space 1}    1.64{col 46}{space 3}0.100{col 54}{space 4}-.0070009{col 67}{space 3} .0794441
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} -.107196{col 26}{space 2} .0212883{col 37}{space 1}   -5.04{col 46}{space 3}0.000{col 54}{space 4}-.1489203{col 67}{space 3}-.0654717
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1062383{col 26}{space 2} .0139999{col 37}{space 1}   -7.59{col 46}{space 3}0.000{col 54}{space 4}-.1336777{col 67}{space 3} -.078799
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0517312{col 26}{space 2} .0160277{col 37}{space 1}   -3.23{col 46}{space 3}0.001{col 54}{space 4}-.0831449{col 67}{space 3}-.0203174
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1493168{col 26}{space 2} .0198652{col 37}{space 1}   -7.52{col 46}{space 3}0.000{col 54}{space 4}-.1882518{col 67}{space 3}-.1103817
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0224222{col 26}{space 2} .0144317{col 37}{space 1}    1.55{col 46}{space 3}0.120{col 54}{space 4}-.0058633{col 67}{space 3} .0507078
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1069349{col 26}{space 2} .0147714{col 37}{space 1}   -7.24{col 46}{space 3}0.000{col 54}{space 4}-.1358863{col 67}{space 3}-.0779834
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .0819856{col 26}{space 2} .0076854{col 37}{space 1}   10.67{col 46}{space 3}0.000{col 54}{space 4} .0669224{col 67}{space 3} .0970487
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0962517{col 26}{space 2} .0084905{col 37}{space 1}   11.34{col 46}{space 3}0.000{col 54}{space 4} .0796106{col 67}{space 3} .1128928
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0740527{col 26}{space 2}  .020968{col 37}{space 1}    3.53{col 46}{space 3}0.000{col 54}{space 4} .0329562{col 67}{space 3} .1151491
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0871947{col 26}{space 2} .0069855{col 37}{space 1}   12.48{col 46}{space 3}0.000{col 54}{space 4} .0735033{col 67}{space 3} .1008861
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1302156{col 26}{space 2} .0094594{col 37}{space 1}   13.77{col 46}{space 3}0.000{col 54}{space 4} .1116755{col 67}{space 3} .1487557
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0832236{col 26}{space 2} .0064075{col 37}{space 1}   12.99{col 46}{space 3}0.000{col 54}{space 4} .0706652{col 67}{space 3} .0957821
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1731521{col 26}{space 2} .0157378{col 37}{space 1}   11.00{col 46}{space 3}0.000{col 54}{space 4} .1423065{col 67}{space 3} .2039977
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0931524{col 26}{space 2} .0083754{col 37}{space 1}   11.12{col 46}{space 3}0.000{col 54}{space 4} .0767369{col 67}{space 3} .1095679
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0868698{col 26}{space 2} .0066898{col 37}{space 1}   12.99{col 46}{space 3}0.000{col 54}{space 4}  .073758{col 67}{space 3} .0999816
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .1088854{col 26}{space 2} .0064607{col 37}{space 1}   16.85{col 46}{space 3}0.000{col 54}{space 4} .0962227{col 67}{space 3} .1215481
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .0003004{col 26}{space 2} .0067411{col 37}{space 1}    0.04{col 46}{space 3}0.964{col 54}{space 4}-.0129119{col 67}{space 3} .0135127
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0039873{col 26}{space 2} .0003862{col 37}{space 1}   10.32{col 46}{space 3}0.000{col 54}{space 4} .0032303{col 67}{space 3} .0047442
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0057497{col 26}{space 2} .0004327{col 37}{space 1}  -13.29{col 46}{space 3}0.000{col 54}{space 4}-.0065978{col 67}{space 3}-.0049017
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0690197{col 26}{space 2} .0022113{col 37}{space 1}  -31.21{col 46}{space 3}0.000{col 54}{space 4}-.0733538{col 67}{space 3}-.0646857
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0337728{col 26}{space 2} .0032374{col 37}{space 1}   10.43{col 46}{space 3}0.000{col 54}{space 4} .0274277{col 67}{space 3} .0401179
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1297109{col 26}{space 2} .0149094{col 37}{space 1}    8.70{col 46}{space 3}0.000{col 54}{space 4} .1004891{col 67}{space 3} .1589328
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 5.57e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0092146{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33}   .12062{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}1561.14{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    4.47
{txt}{col 10}Prob > chi2 =  {res}  0.0345

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01332954

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(High Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 3 - FDI from Low Corruption Countries

. 
. gen active=active50_lowcorr

. 
. gen inactive=inactive50_lowcorr

. 
. mixed bribe_d active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-41135.767
{txt}Iteration 1:{col 16}log likelihood = {res}-39342.036
{txt}Iteration 2:{col 16}log likelihood = {res}-38938.271
{txt}Iteration 3:{col 16}log likelihood = {res}-38784.904
{txt}Iteration 4:{col 16}log likelihood = {res}-38712.731
{txt}Iteration 5:{col 16}log likelihood = {res}-38674.417
{txt}Iteration 6:{col 16}log likelihood = {res}-38652.436
{txt}Iteration 7:{col 16}log likelihood = {res}-38639.126
{txt}Iteration 8:{col 16}log likelihood = {res}-38630.737
{txt}Iteration 9:{col 16}log likelihood = {res}-38625.286
{txt}Iteration 10:{col 16}log likelihood = {res}-38621.655
{txt}Iteration 11:{col 16}log likelihood = {res}-38619.187
{txt}Iteration 12:{col 16}log likelihood = {res} -38617.48
{txt}Iteration 13:{col 16}log likelihood = {res}-38616.281
{txt}Iteration 14:{col 16}log likelihood = {res}-38615.426
{txt}Iteration 15:{col 16}log likelihood = {res}-38614.809
{txt}Iteration 16:{col 16}log likelihood = {res}-38614.356
{txt}Iteration 17:{col 16}log likelihood = {res} -38614.02
{txt}Iteration 18:{col 16}log likelihood = {res}-38613.767
{txt}Iteration 19:{col 16}log likelihood = {res}-38613.573
{txt}Iteration 20:{col 16}log likelihood = {res}-38613.422

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,975

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,856.4{col 53}   10,060
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.5{col 53}      607
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res}  5600.42
{txt}Log likelihood = {res}-38613.422{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0039325{col 26}{space 2}  .004541{col 37}{space 1}   -0.87{col 46}{space 3}0.386{col 54}{space 4}-.0128326{col 67}{space 3} .0049676
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0033135{col 26}{space 2} .0066191{col 37}{space 1}    0.50{col 46}{space 3}0.617{col 54}{space 4}-.0096598{col 67}{space 3} .0162868
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2} -.133347{col 26}{space 2} .0173845{col 37}{space 1}   -7.67{col 46}{space 3}0.000{col 54}{space 4}  -.16742{col 67}{space 3} -.099274
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} -.076687{col 26}{space 2} .0142424{col 37}{space 1}   -5.38{col 46}{space 3}0.000{col 54}{space 4}-.1046016{col 67}{space 3}-.0487724
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.2191011{col 26}{space 2} .0151144{col 37}{space 1}  -14.50{col 46}{space 3}0.000{col 54}{space 4}-.2487248{col 67}{space 3}-.1894773
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0908978{col 26}{space 2} .0147181{col 37}{space 1}   -6.18{col 46}{space 3}0.000{col 54}{space 4}-.1197448{col 67}{space 3}-.0620509
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.0527732{col 26}{space 2} .0223707{col 37}{space 1}   -2.36{col 46}{space 3}0.018{col 54}{space 4} -.096619{col 67}{space 3}-.0089274
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0586425{col 26}{space 2} .0169483{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0254244{col 67}{space 3} .0918606
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.2020607{col 26}{space 2} .0162422{col 37}{space 1}  -12.44{col 46}{space 3}0.000{col 54}{space 4}-.2338949{col 67}{space 3}-.1702265
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.0284161{col 26}{space 2} .0172196{col 37}{space 1}   -1.65{col 46}{space 3}0.099{col 54}{space 4}-.0621659{col 67}{space 3} .0053337
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0670927{col 26}{space 2} .0181126{col 37}{space 1}    3.70{col 46}{space 3}0.000{col 54}{space 4} .0315927{col 67}{space 3} .1025926
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0705285{col 26}{space 2} .0233948{col 37}{space 1}   -3.01{col 46}{space 3}0.003{col 54}{space 4}-.1163815{col 67}{space 3}-.0246756
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0650194{col 26}{space 2} .0130913{col 37}{space 1}   -4.97{col 46}{space 3}0.000{col 54}{space 4}-.0906779{col 67}{space 3} -.039361
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0150128{col 26}{space 2} .0201164{col 37}{space 1}   -0.75{col 46}{space 3}0.455{col 54}{space 4}-.0544402{col 67}{space 3} .0244146
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1241003{col 26}{space 2} .0136216{col 37}{space 1}    9.11{col 46}{space 3}0.000{col 54}{space 4} .0974024{col 67}{space 3} .1507982
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.1189857{col 26}{space 2} .0162513{col 37}{space 1}   -7.32{col 46}{space 3}0.000{col 54}{space 4}-.1508377{col 67}{space 3}-.0871337
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .0820434{col 26}{space 2} .0169102{col 37}{space 1}    4.85{col 46}{space 3}0.000{col 54}{space 4} .0489001{col 67}{space 3} .1151867
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.1101588{col 26}{space 2} .0140333{col 37}{space 1}   -7.85{col 46}{space 3}0.000{col 54}{space 4}-.1376635{col 67}{space 3}-.0826542
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1778303{col 26}{space 2} .0147777{col 37}{space 1}  -12.03{col 46}{space 3}0.000{col 54}{space 4} -.206794{col 67}{space 3}-.1488666
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0980787{col 26}{space 2} .0131128{col 37}{space 1}   -7.48{col 46}{space 3}0.000{col 54}{space 4}-.1237794{col 67}{space 3} -.072378
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} -.188603{col 26}{space 2} .0163858{col 37}{space 1}  -11.51{col 46}{space 3}0.000{col 54}{space 4}-.2207186{col 67}{space 3}-.1564874
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1635325{col 26}{space 2} .0229704{col 37}{space 1}    7.12{col 46}{space 3}0.000{col 54}{space 4} .1185113{col 67}{space 3} .2085537
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0070856{col 26}{space 2} .0137127{col 37}{space 1}    0.52{col 46}{space 3}0.605{col 54}{space 4}-.0197909{col 67}{space 3} .0339621
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} -.160066{col 26}{space 2} .0146832{col 37}{space 1}  -10.90{col 46}{space 3}0.000{col 54}{space 4}-.1888447{col 67}{space 3}-.1312874
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.1083677{col 26}{space 2} .0165052{col 37}{space 1}   -6.57{col 46}{space 3}0.000{col 54}{space 4}-.1407173{col 67}{space 3} -.076018
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}  .044228{col 26}{space 2} .0127964{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0191475{col 67}{space 3} .0693084
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0926837{col 26}{space 2} .0141428{col 37}{space 1}   -6.55{col 46}{space 3}0.000{col 54}{space 4}-.1204031{col 67}{space 3}-.0649644
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1463612{col 26}{space 2} .0181212{col 37}{space 1}    8.08{col 46}{space 3}0.000{col 54}{space 4} .1108442{col 67}{space 3} .1818782
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1723501{col 26}{space 2} .0127777{col 37}{space 1}  -13.49{col 46}{space 3}0.000{col 54}{space 4} -.197394{col 67}{space 3}-.1473062
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0294307{col 26}{space 2} .0220785{col 37}{space 1}    1.33{col 46}{space 3}0.183{col 54}{space 4}-.0138424{col 67}{space 3} .0727037
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.1109601{col 26}{space 2} .0213205{col 37}{space 1}   -5.20{col 46}{space 3}0.000{col 54}{space 4}-.1527476{col 67}{space 3}-.0691726
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1092719{col 26}{space 2} .0139966{col 37}{space 1}   -7.81{col 46}{space 3}0.000{col 54}{space 4}-.1367048{col 67}{space 3} -.081839
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0593477{col 26}{space 2} .0159115{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.0905337{col 67}{space 3}-.0281616
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1573999{col 26}{space 2} .0200504{col 37}{space 1}   -7.85{col 46}{space 3}0.000{col 54}{space 4}-.1966979{col 67}{space 3}-.1181019
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0266749{col 26}{space 2} .0144451{col 37}{space 1}    1.85{col 46}{space 3}0.065{col 54}{space 4}-.0016371{col 67}{space 3} .0549868
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1094947{col 26}{space 2} .0147874{col 37}{space 1}   -7.40{col 46}{space 3}0.000{col 54}{space 4}-.1384774{col 67}{space 3} -.080512
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .0822994{col 26}{space 2}  .008101{col 37}{space 1}   10.16{col 46}{space 3}0.000{col 54}{space 4} .0664216{col 67}{space 3} .0981771
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}  .098877{col 26}{space 2} .0084912{col 37}{space 1}   11.64{col 46}{space 3}0.000{col 54}{space 4} .0822344{col 67}{space 3} .1155195
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0790469{col 26}{space 2} .0207868{col 37}{space 1}    3.80{col 46}{space 3}0.000{col 54}{space 4} .0383055{col 67}{space 3} .1197882
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0881259{col 26}{space 2} .0070586{col 37}{space 1}   12.48{col 46}{space 3}0.000{col 54}{space 4} .0742913{col 67}{space 3} .1019604
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1300313{col 26}{space 2} .0094954{col 37}{space 1}   13.69{col 46}{space 3}0.000{col 54}{space 4} .1114207{col 67}{space 3}  .148642
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0833222{col 26}{space 2} .0064667{col 37}{space 1}   12.88{col 46}{space 3}0.000{col 54}{space 4} .0706477{col 67}{space 3} .0959967
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1708905{col 26}{space 2} .0157562{col 37}{space 1}   10.85{col 46}{space 3}0.000{col 54}{space 4} .1400089{col 67}{space 3} .2017721
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0926555{col 26}{space 2} .0083909{col 37}{space 1}   11.04{col 46}{space 3}0.000{col 54}{space 4} .0762096{col 67}{space 3} .1091015
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0856207{col 26}{space 2} .0067417{col 37}{space 1}   12.70{col 46}{space 3}0.000{col 54}{space 4} .0724073{col 67}{space 3} .0988342
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .1083397{col 26}{space 2} .0064688{col 37}{space 1}   16.75{col 46}{space 3}0.000{col 54}{space 4} .0956612{col 67}{space 3} .1210182
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0005287{col 26}{space 2} .0067563{col 37}{space 1}   -0.08{col 46}{space 3}0.938{col 54}{space 4}-.0137707{col 67}{space 3} .0127133
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0039673{col 26}{space 2} .0003862{col 37}{space 1}   10.27{col 46}{space 3}0.000{col 54}{space 4} .0032103{col 67}{space 3} .0047243
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0057284{col 26}{space 2} .0004327{col 37}{space 1}  -13.24{col 46}{space 3}0.000{col 54}{space 4}-.0065765{col 67}{space 3}-.0048803
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0689795{col 26}{space 2} .0022114{col 37}{space 1}  -31.19{col 46}{space 3}0.000{col 54}{space 4}-.0733137{col 67}{space 3}-.0646452
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0361573{col 26}{space 2}  .003255{col 37}{space 1}   11.11{col 46}{space 3}0.000{col 54}{space 4} .0297776{col 67}{space 3} .0425371
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1407757{col 26}{space 2}  .014791{col 37}{space 1}    9.52{col 46}{space 3}0.000{col 54}{space 4} .1117859{col 67}{space 3} .1697656
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 5.58e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0092758{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1206302{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}1585.09{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    1.04
{txt}{col 10}Prob > chi2 =  {res}  0.3075

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.00724599

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(Low Corr FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 4 - FDI from High Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_highwgb

. 
. gen inactive=inactive50_highwgb

. 
. mixed bribe_d active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-41136.149
{txt}Iteration 1:{col 16}log likelihood = {res}-39342.275
{txt}Iteration 2:{col 16}log likelihood = {res}-38938.734
{txt}Iteration 3:{col 16}log likelihood = {res}-38785.455
{txt}Iteration 4:{col 16}log likelihood = {res} -38713.32
{txt}Iteration 5:{col 16}log likelihood = {res}-38675.025
{txt}Iteration 6:{col 16}log likelihood = {res}-38653.055
{txt}Iteration 7:{col 16}log likelihood = {res} -38639.75
{txt}Iteration 8:{col 16}log likelihood = {res}-38631.364
{txt}Iteration 9:{col 16}log likelihood = {res}-38625.915
{txt}Iteration 10:{col 16}log likelihood = {res}-38622.285
{txt}Iteration 11:{col 16}log likelihood = {res}-38619.818
{txt}Iteration 12:{col 16}log likelihood = {res}-38618.111
{txt}Iteration 13:{col 16}log likelihood = {res}-38616.912
{txt}Iteration 14:{col 16}log likelihood = {res}-38616.058
{txt}Iteration 15:{col 16}log likelihood = {res} -38615.44
{txt}Iteration 16:{col 16}log likelihood = {res}-38614.988
{txt}Iteration 17:{col 16}log likelihood = {res}-38614.651
{txt}Iteration 18:{col 16}log likelihood = {res}-38614.398
{txt}Iteration 19:{col 16}log likelihood = {res}-38614.204
{txt}Iteration 20:{col 16}log likelihood = {res}-38614.053

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,975

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,856.4{col 53}   10,060
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.5{col 53}      607
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res}  5598.79
{txt}Log likelihood = {res}-38614.053{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0004215{col 26}{space 2} .0052108{col 37}{space 1}    0.08{col 46}{space 3}0.936{col 54}{space 4}-.0097915{col 67}{space 3} .0106346
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0008386{col 26}{space 2}  .007456{col 37}{space 1}    0.11{col 46}{space 3}0.910{col 54}{space 4}-.0137749{col 67}{space 3} .0154522
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.1343569{col 26}{space 2} .0173758{col 37}{space 1}   -7.73{col 46}{space 3}0.000{col 54}{space 4}-.1684129{col 67}{space 3}-.1003009
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} -.076461{col 26}{space 2} .0142225{col 37}{space 1}   -5.38{col 46}{space 3}0.000{col 54}{space 4}-.1043366{col 67}{space 3}-.0485853
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.2194007{col 26}{space 2} .0151126{col 37}{space 1}  -14.52{col 46}{space 3}0.000{col 54}{space 4}-.2490208{col 67}{space 3}-.1897805
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0906126{col 26}{space 2} .0147228{col 37}{space 1}   -6.15{col 46}{space 3}0.000{col 54}{space 4}-.1194688{col 67}{space 3}-.0617564
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.0527707{col 26}{space 2} .0224372{col 37}{space 1}   -2.35{col 46}{space 3}0.019{col 54}{space 4}-.0967468{col 67}{space 3}-.0087946
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2}  .059557{col 26}{space 2} .0169317{col 37}{space 1}    3.52{col 46}{space 3}0.000{col 54}{space 4} .0263715{col 67}{space 3} .0927426
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.2021993{col 26}{space 2} .0162539{col 37}{space 1}  -12.44{col 46}{space 3}0.000{col 54}{space 4}-.2340563{col 67}{space 3}-.1703423
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.0286571{col 26}{space 2} .0172077{col 37}{space 1}   -1.67{col 46}{space 3}0.096{col 54}{space 4}-.0623835{col 67}{space 3} .0050692
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0652072{col 26}{space 2} .0179996{col 37}{space 1}    3.62{col 46}{space 3}0.000{col 54}{space 4} .0299287{col 67}{space 3} .1004857
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0699057{col 26}{space 2} .0233959{col 37}{space 1}   -2.99{col 46}{space 3}0.003{col 54}{space 4}-.1157608{col 67}{space 3}-.0240505
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0660001{col 26}{space 2} .0130744{col 37}{space 1}   -5.05{col 46}{space 3}0.000{col 54}{space 4}-.0916255{col 67}{space 3}-.0403747
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0142989{col 26}{space 2} .0201117{col 37}{space 1}   -0.71{col 46}{space 3}0.477{col 54}{space 4}-.0537172{col 67}{space 3} .0251193
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1235004{col 26}{space 2} .0135708{col 37}{space 1}    9.10{col 46}{space 3}0.000{col 54}{space 4}  .096902{col 67}{space 3} .1500987
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.1190556{col 26}{space 2} .0162629{col 37}{space 1}   -7.32{col 46}{space 3}0.000{col 54}{space 4}-.1509304{col 67}{space 3}-.0871809
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}  .082289{col 26}{space 2} .0169171{col 37}{space 1}    4.86{col 46}{space 3}0.000{col 54}{space 4} .0491321{col 67}{space 3}  .115446
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} -.110303{col 26}{space 2} .0139868{col 37}{space 1}   -7.89{col 46}{space 3}0.000{col 54}{space 4}-.1377165{col 67}{space 3}-.0828894
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1786397{col 26}{space 2} .0147614{col 37}{space 1}  -12.10{col 46}{space 3}0.000{col 54}{space 4}-.2075716{col 67}{space 3}-.1497079
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0985202{col 26}{space 2} .0131232{col 37}{space 1}   -7.51{col 46}{space 3}0.000{col 54}{space 4}-.1242412{col 67}{space 3}-.0727992
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1921413{col 26}{space 2} .0160102{col 37}{space 1}  -12.00{col 46}{space 3}0.000{col 54}{space 4}-.2235207{col 67}{space 3}-.1607619
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1624507{col 26}{space 2} .0228653{col 37}{space 1}    7.10{col 46}{space 3}0.000{col 54}{space 4} .1176354{col 67}{space 3} .2072659
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0068066{col 26}{space 2} .0136637{col 37}{space 1}    0.50{col 46}{space 3}0.618{col 54}{space 4}-.0199738{col 67}{space 3}  .033587
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1600873{col 26}{space 2} .0146855{col 37}{space 1}  -10.90{col 46}{space 3}0.000{col 54}{space 4}-.1888705{col 67}{space 3}-.1313042
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.1075218{col 26}{space 2}  .016485{col 37}{space 1}   -6.52{col 46}{space 3}0.000{col 54}{space 4}-.1398318{col 67}{space 3}-.0752119
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}  .043677{col 26}{space 2} .0127787{col 37}{space 1}    3.42{col 46}{space 3}0.001{col 54}{space 4} .0186312{col 67}{space 3} .0687228
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0935879{col 26}{space 2} .0140832{col 37}{space 1}   -6.65{col 46}{space 3}0.000{col 54}{space 4}-.1211905{col 67}{space 3}-.0659853
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1461894{col 26}{space 2} .0181631{col 37}{space 1}    8.05{col 46}{space 3}0.000{col 54}{space 4} .1105904{col 67}{space 3} .1817883
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.1735058{col 26}{space 2} .0126023{col 37}{space 1}  -13.77{col 46}{space 3}0.000{col 54}{space 4}-.1982058{col 67}{space 3}-.1488058
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0303369{col 26}{space 2} .0220713{col 37}{space 1}    1.37{col 46}{space 3}0.169{col 54}{space 4}-.0129221{col 67}{space 3}  .073596
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.1106985{col 26}{space 2} .0213251{col 37}{space 1}   -5.19{col 46}{space 3}0.000{col 54}{space 4}-.1524948{col 67}{space 3}-.0689021
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1094248{col 26}{space 2} .0140034{col 37}{space 1}   -7.81{col 46}{space 3}0.000{col 54}{space 4}-.1368709{col 67}{space 3}-.0819787
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0594584{col 26}{space 2} .0159056{col 37}{space 1}   -3.74{col 46}{space 3}0.000{col 54}{space 4}-.0906327{col 67}{space 3}-.0282841
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1600117{col 26}{space 2} .0198396{col 37}{space 1}   -8.07{col 46}{space 3}0.000{col 54}{space 4}-.1988966{col 67}{space 3}-.1211268
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0260521{col 26}{space 2} .0144735{col 37}{space 1}    1.80{col 46}{space 3}0.072{col 54}{space 4}-.0023154{col 67}{space 3} .0544195
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1094762{col 26}{space 2} .0148072{col 37}{space 1}   -7.39{col 46}{space 3}0.000{col 54}{space 4}-.1384977{col 67}{space 3}-.0804546
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .0851255{col 26}{space 2} .0077713{col 37}{space 1}   10.95{col 46}{space 3}0.000{col 54}{space 4} .0698941{col 67}{space 3} .1003569
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .1006578{col 26}{space 2} .0084342{col 37}{space 1}   11.93{col 46}{space 3}0.000{col 54}{space 4} .0841271{col 67}{space 3} .1171885
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0799122{col 26}{space 2} .0207737{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4} .0391964{col 67}{space 3}  .120628
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0893949{col 26}{space 2} .0069903{col 37}{space 1}   12.79{col 46}{space 3}0.000{col 54}{space 4} .0756942{col 67}{space 3} .1030956
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1309094{col 26}{space 2} .0094686{col 37}{space 1}   13.83{col 46}{space 3}0.000{col 54}{space 4} .1123512{col 67}{space 3} .1494676
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0842886{col 26}{space 2} .0064166{col 37}{space 1}   13.14{col 46}{space 3}0.000{col 54}{space 4} .0717124{col 67}{space 3} .0968649
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1717295{col 26}{space 2}  .015742{col 37}{space 1}   10.91{col 46}{space 3}0.000{col 54}{space 4} .1408757{col 67}{space 3} .2025832
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0931258{col 26}{space 2} .0083844{col 37}{space 1}   11.11{col 46}{space 3}0.000{col 54}{space 4} .0766926{col 67}{space 3}  .109559
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0864958{col 26}{space 2}  .006695{col 37}{space 1}   12.92{col 46}{space 3}0.000{col 54}{space 4} .0733739{col 67}{space 3} .0996177
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .1085834{col 26}{space 2} .0064659{col 37}{space 1}   16.79{col 46}{space 3}0.000{col 54}{space 4} .0959104{col 67}{space 3} .1212564
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .0001162{col 26}{space 2} .0067325{col 37}{space 1}    0.02{col 46}{space 3}0.986{col 54}{space 4}-.0130793{col 67}{space 3} .0133117
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0039646{col 26}{space 2} .0003862{col 37}{space 1}   10.26{col 46}{space 3}0.000{col 54}{space 4} .0032076{col 67}{space 3} .0047216
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0057262{col 26}{space 2} .0004327{col 37}{space 1}  -13.23{col 46}{space 3}0.000{col 54}{space 4}-.0065743{col 67}{space 3} -.004878
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0689859{col 26}{space 2} .0022114{col 37}{space 1}  -31.20{col 46}{space 3}0.000{col 54}{space 4}-.0733202{col 67}{space 3}-.0646516
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0357815{col 26}{space 2}  .003229{col 37}{space 1}   11.08{col 46}{space 3}0.000{col 54}{space 4} .0294527{col 67}{space 3} .0421103
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1399543{col 26}{space 2} .0147778{col 37}{space 1}    9.47{col 46}{space 3}0.000{col 54}{space 4} .1109903{col 67}{space 3} .1689182
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 5.58e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0092776{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1206309{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}1584.76{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    0.00
{txt}{col 10}Prob > chi2 =  {res}  0.9591

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.00041709

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(High ABC FDI) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 5 - FDI from Low Proportion of ABC Signatory countries

. 
. 
. 
. gen active=active50_lowwgb

. 
. gen inactive=inactive50_lowwgb

. 
. mixed bribe_d active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-41132.188
{txt}Iteration 1:{col 16}log likelihood = {res}-39332.383
{txt}Iteration 2:{col 16}log likelihood = {res}-38927.326
{txt}Iteration 3:{col 16}log likelihood = {res}-38773.291
{txt}Iteration 4:{col 16}log likelihood = {res}-38700.702
{txt}Iteration 5:{col 16}log likelihood = {res}-38662.109
{txt}Iteration 6:{col 16}log likelihood = {res}-38639.934
{txt}Iteration 7:{col 16}log likelihood = {res}-38626.483
{txt}Iteration 8:{col 16}log likelihood = {res}-38617.992
{txt}Iteration 9:{col 16}log likelihood = {res}-38612.465
{txt}Iteration 10:{col 16}log likelihood = {res}-38608.777
{txt}Iteration 11:{col 16}log likelihood = {res}-38606.267
{txt}Iteration 12:{col 16}log likelihood = {res}-38604.527
{txt}Iteration 13:{col 16}log likelihood = {res}-38603.304
{txt}Iteration 14:{col 16}log likelihood = {res} -38602.43
{txt}Iteration 15:{col 16}log likelihood = {res}-38601.798
{txt}Iteration 16:{col 16}log likelihood = {res}-38601.335
{txt}Iteration 17:{col 16}log likelihood = {res}-38600.991
{txt}Iteration 18:{col 16}log likelihood = {res}-38600.731
{txt}Iteration 19:{col 16}log likelihood = {res}-38600.532
{txt}Iteration 20:{col 16}log likelihood = {res}-38600.378

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,975

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,856.4{col 53}   10,060
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.5{col 53}      607
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res}  5638.57
{txt}Log likelihood = {res}-38600.378{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0088833{col 26}{space 2} .0041275{col 37}{space 1}    2.15{col 46}{space 3}0.031{col 54}{space 4} .0007936{col 67}{space 3} .0169731
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0261164{col 26}{space 2} .0050683{col 37}{space 1}    5.15{col 46}{space 3}0.000{col 54}{space 4} .0161827{col 67}{space 3}   .03605
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.1320343{col 26}{space 2} .0172984{col 37}{space 1}   -7.63{col 46}{space 3}0.000{col 54}{space 4}-.1659386{col 67}{space 3}  -.09813
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}-.0746061{col 26}{space 2} .0142394{col 37}{space 1}   -5.24{col 46}{space 3}0.000{col 54}{space 4}-.1025148{col 67}{space 3}-.0466975
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.2160806{col 26}{space 2}  .015097{col 37}{space 1}  -14.31{col 46}{space 3}0.000{col 54}{space 4}-.2456702{col 67}{space 3} -.186491
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.0874844{col 26}{space 2} .0147435{col 37}{space 1}   -5.93{col 46}{space 3}0.000{col 54}{space 4}-.1163812{col 67}{space 3}-.0585876
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.0513226{col 26}{space 2} .0223419{col 37}{space 1}   -2.30{col 46}{space 3}0.022{col 54}{space 4}-.0951118{col 67}{space 3}-.0075334
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0611222{col 26}{space 2} .0169726{col 37}{space 1}    3.60{col 46}{space 3}0.000{col 54}{space 4} .0278566{col 67}{space 3} .0943878
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.2043916{col 26}{space 2} .0162278{col 37}{space 1}  -12.60{col 46}{space 3}0.000{col 54}{space 4}-.2361976{col 67}{space 3}-.1725857
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.0269489{col 26}{space 2} .0172097{col 37}{space 1}   -1.57{col 46}{space 3}0.117{col 54}{space 4}-.0606792{col 67}{space 3} .0067814
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .0660678{col 26}{space 2} .0179048{col 37}{space 1}    3.69{col 46}{space 3}0.000{col 54}{space 4} .0309751{col 67}{space 3} .1011606
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0681818{col 26}{space 2} .0233537{col 37}{space 1}   -2.92{col 46}{space 3}0.004{col 54}{space 4}-.1139543{col 67}{space 3}-.0224093
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.0639254{col 26}{space 2} .0130456{col 37}{space 1}   -4.90{col 46}{space 3}0.000{col 54}{space 4}-.0894943{col 67}{space 3}-.0383565
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.0109114{col 26}{space 2} .0201144{col 37}{space 1}   -0.54{col 46}{space 3}0.587{col 54}{space 4}-.0503348{col 67}{space 3} .0285121
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1234861{col 26}{space 2} .0135258{col 37}{space 1}    9.13{col 46}{space 3}0.000{col 54}{space 4} .0969761{col 67}{space 3} .1499961
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.1120404{col 26}{space 2} .0163183{col 37}{space 1}   -6.87{col 46}{space 3}0.000{col 54}{space 4}-.1440237{col 67}{space 3} -.080057
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2} .0795005{col 26}{space 2} .0169603{col 37}{space 1}    4.69{col 46}{space 3}0.000{col 54}{space 4}  .046259{col 67}{space 3} .1127421
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}-.1089271{col 26}{space 2} .0139867{col 37}{space 1}   -7.79{col 46}{space 3}0.000{col 54}{space 4}-.1363406{col 67}{space 3}-.0815136
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.1805859{col 26}{space 2} .0147645{col 37}{space 1}  -12.23{col 46}{space 3}0.000{col 54}{space 4}-.2095238{col 67}{space 3} -.151648
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.0941707{col 26}{space 2} .0131364{col 37}{space 1}   -7.17{col 46}{space 3}0.000{col 54}{space 4}-.1199176{col 67}{space 3}-.0684238
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.1911832{col 26}{space 2} .0158699{col 37}{space 1}  -12.05{col 46}{space 3}0.000{col 54}{space 4}-.2222877{col 67}{space 3}-.1600788
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1624123{col 26}{space 2} .0228225{col 37}{space 1}    7.12{col 46}{space 3}0.000{col 54}{space 4} .1176811{col 67}{space 3} .2071436
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2} .0078513{col 26}{space 2}  .013654{col 37}{space 1}    0.58{col 46}{space 3}0.565{col 54}{space 4}-.0189101{col 67}{space 3} .0346126
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1586863{col 26}{space 2} .0146641{col 37}{space 1}  -10.82{col 46}{space 3}0.000{col 54}{space 4}-.1874275{col 67}{space 3}-.1299451
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} -.104565{col 26}{space 2} .0165339{col 37}{space 1}   -6.32{col 46}{space 3}0.000{col 54}{space 4}-.1369708{col 67}{space 3}-.0721591
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .0470031{col 26}{space 2}  .012772{col 37}{space 1}    3.68{col 46}{space 3}0.000{col 54}{space 4} .0219703{col 67}{space 3} .0720358
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0909291{col 26}{space 2}  .014049{col 37}{space 1}   -6.47{col 46}{space 3}0.000{col 54}{space 4}-.1184648{col 67}{space 3}-.0633935
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2} .1491535{col 26}{space 2} .0181035{col 37}{space 1}    8.24{col 46}{space 3}0.000{col 54}{space 4} .1136713{col 67}{space 3} .1846357
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} -.171328{col 26}{space 2} .0125804{col 37}{space 1}  -13.62{col 46}{space 3}0.000{col 54}{space 4}-.1959852{col 67}{space 3}-.1466708
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0330399{col 26}{space 2} .0220432{col 37}{space 1}    1.50{col 46}{space 3}0.134{col 54}{space 4}-.0101639{col 67}{space 3} .0762437
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.1087703{col 26}{space 2} .0212822{col 37}{space 1}   -5.11{col 46}{space 3}0.000{col 54}{space 4}-.1504825{col 67}{space 3} -.067058
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1079788{col 26}{space 2} .0140009{col 37}{space 1}   -7.71{col 46}{space 3}0.000{col 54}{space 4}-.1354201{col 67}{space 3}-.0805376
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}-.0581632{col 26}{space 2} .0159448{col 37}{space 1}   -3.65{col 46}{space 3}0.000{col 54}{space 4}-.0894144{col 67}{space 3} -.026912
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.1584324{col 26}{space 2} .0197458{col 37}{space 1}   -8.02{col 46}{space 3}0.000{col 54}{space 4}-.1971335{col 67}{space 3}-.1197313
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .0254562{col 26}{space 2} .0144235{col 37}{space 1}    1.76{col 46}{space 3}0.078{col 54}{space 4}-.0028133{col 67}{space 3} .0537257
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.1066229{col 26}{space 2}  .014794{col 37}{space 1}   -7.21{col 46}{space 3}0.000{col 54}{space 4}-.1356185{col 67}{space 3}-.0776272
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2} .0789605{col 26}{space 2} .0078921{col 37}{space 1}   10.01{col 46}{space 3}0.000{col 54}{space 4} .0634924{col 67}{space 3} .0944287
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0946138{col 26}{space 2} .0085346{col 37}{space 1}   11.09{col 46}{space 3}0.000{col 54}{space 4} .0778863{col 67}{space 3} .1113413
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0711602{col 26}{space 2}  .020988{col 37}{space 1}    3.39{col 46}{space 3}0.001{col 54}{space 4} .0300244{col 67}{space 3} .1122959
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0862448{col 26}{space 2} .0070372{col 37}{space 1}   12.26{col 46}{space 3}0.000{col 54}{space 4} .0724522{col 67}{space 3} .1000375
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1297963{col 26}{space 2} .0094744{col 37}{space 1}   13.70{col 46}{space 3}0.000{col 54}{space 4} .1112267{col 67}{space 3} .1483659
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0822609{col 26}{space 2} .0064417{col 37}{space 1}   12.77{col 46}{space 3}0.000{col 54}{space 4} .0696353{col 67}{space 3} .0948865
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1713278{col 26}{space 2} .0157282{col 37}{space 1}   10.89{col 46}{space 3}0.000{col 54}{space 4} .1405011{col 67}{space 3} .2021546
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0932095{col 26}{space 2} .0083754{col 37}{space 1}   11.13{col 46}{space 3}0.000{col 54}{space 4} .0767939{col 67}{space 3}  .109625
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0860485{col 26}{space 2} .0066911{col 37}{space 1}   12.86{col 46}{space 3}0.000{col 54}{space 4} .0729343{col 67}{space 3} .0991628
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .1083777{col 26}{space 2} .0064615{col 37}{space 1}   16.77{col 46}{space 3}0.000{col 54}{space 4} .0957134{col 67}{space 3} .1210419
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .0002223{col 26}{space 2} .0067266{col 37}{space 1}    0.03{col 46}{space 3}0.974{col 54}{space 4}-.0129615{col 67}{space 3} .0134062
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0039649{col 26}{space 2} .0003862{col 37}{space 1}   10.27{col 46}{space 3}0.000{col 54}{space 4}  .003208{col 67}{space 3} .0047219
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0057257{col 26}{space 2} .0004327{col 37}{space 1}  -13.23{col 46}{space 3}0.000{col 54}{space 4}-.0065737{col 67}{space 3}-.0048777
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0690025{col 26}{space 2} .0022114{col 37}{space 1}  -31.20{col 46}{space 3}0.000{col 54}{space 4}-.0733367{col 67}{space 3}-.0646683
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0335318{col 26}{space 2} .0032641{col 37}{space 1}   10.27{col 46}{space 3}0.000{col 54}{space 4} .0271343{col 67}{space 3} .0399293
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .1357668{col 26}{space 2}  .014861{col 37}{space 1}    9.14{col 46}{space 3}0.000{col 54}{space 4} .1066397{col 67}{space 3} .1648938
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 5.57e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0092139{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1206277{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}1566.48{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[bribe_d]active - [bribe_d]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}    9.47
{txt}{col 10}Prob > chi2 =  {res}  0.0021

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.01723302

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(Low ABC) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 6 - Often Without Cash

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. mixed often_without_cash active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-50831.691
{txt}Iteration 1:{col 16}log likelihood = {res}-49349.713
{txt}Iteration 2:{col 16}log likelihood = {res}-49019.724
{txt}Iteration 3:{col 16}log likelihood = {res}-48898.913
{txt}Iteration 4:{col 16}log likelihood = {res}-48844.631
{txt}Iteration 5:{col 16}log likelihood = {res}-48817.269
{txt}Iteration 6:{col 16}log likelihood = {res}-48802.417
{txt}Iteration 7:{col 16}log likelihood = {res}-48793.925
{txt}Iteration 8:{col 16}log likelihood = {res}-48788.877
{txt}Iteration 9:{col 16}log likelihood = {res}-48785.781
{txt}Iteration 10:{col 16}log likelihood = {res}-48783.831
{txt}Iteration 11:{col 16}log likelihood = {res}-48782.573
{txt}Iteration 12:{col 16}log likelihood = {res}-48781.741
{txt}Iteration 13:{col 16}log likelihood = {res}-48781.179
{txt}Iteration 14:{col 16}log likelihood = {res}-48780.788
{txt}Iteration 15:{col 16}log likelihood = {res} -48780.51
{txt}Iteration 16:{col 16}log likelihood = {res}-48780.307
{txt}Iteration 17:{col 16}log likelihood = {res}-48780.153
{txt}Iteration 18:{col 16}log likelihood = {res}-48780.034
{txt}Iteration 19:{col 16}log likelihood = {res}-48779.938
{txt}Iteration 20:{col 16}log likelihood = {res} -48779.86

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    87,019

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,486.3{col 53}    7,901
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   7,956{col 31}        1{col 42}     10.9{col 53}      456
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}48{txt}){col 67}={col 70}{res} 11525.61
{txt}Log likelihood = {res} -48779.86{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0287323{col 26}{space 2} .0052746{col 37}{space 1}   -5.45{col 46}{space 3}0.000{col 54}{space 4}-.0390703{col 67}{space 3}-.0183943
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0018196{col 26}{space 2} .0070068{col 37}{space 1}    0.26{col 46}{space 3}0.795{col 54}{space 4}-.0119135{col 67}{space 3} .0155527
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2}-.6157839{col 26}{space 2} .0219172{col 37}{space 1}  -28.10{col 46}{space 3}0.000{col 54}{space 4}-.6587409{col 67}{space 3} -.572827
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2}   .07649{col 26}{space 2}   .01814{col 37}{space 1}    4.22{col 46}{space 3}0.000{col 54}{space 4} .0409363{col 67}{space 3} .1120437
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2} -.170541{col 26}{space 2}  .019756{col 37}{space 1}   -8.63{col 46}{space 3}0.000{col 54}{space 4} -.209262{col 67}{space 3}-.1318199
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}  .106114{col 26}{space 2} .0187748{col 37}{space 1}    5.65{col 46}{space 3}0.000{col 54}{space 4} .0693162{col 67}{space 3} .1429118
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2} .1286225{col 26}{space 2}  .028156{col 37}{space 1}    4.57{col 46}{space 3}0.000{col 54}{space 4} .0734377{col 67}{space 3} .1838073
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0134788{col 26}{space 2} .0214711{col 37}{space 1}    0.63{col 46}{space 3}0.530{col 54}{space 4}-.0286038{col 67}{space 3} .0555614
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2}-.3462882{col 26}{space 2} .0211896{col 37}{space 1}  -16.34{col 46}{space 3}0.000{col 54}{space 4} -.387819{col 67}{space 3}-.3047575
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2} .0882503{col 26}{space 2} .0218322{col 37}{space 1}    4.04{col 46}{space 3}0.000{col 54}{space 4} .0454599{col 67}{space 3} .1310407
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} -.519767{col 26}{space 2} .0227241{col 37}{space 1}  -22.87{col 46}{space 3}0.000{col 54}{space 4}-.5643054{col 67}{space 3}-.4752285
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2} .1831078{col 26}{space 2} .0296148{col 37}{space 1}    6.18{col 46}{space 3}0.000{col 54}{space 4} .1250638{col 67}{space 3} .2411518
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2}-.3003123{col 26}{space 2} .0169102{col 37}{space 1}  -17.76{col 46}{space 3}0.000{col 54}{space 4}-.3334557{col 67}{space 3}-.2671688
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2} .1253899{col 26}{space 2} .0253568{col 37}{space 1}    4.95{col 46}{space 3}0.000{col 54}{space 4} .0756915{col 67}{space 3} .1750883
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2}-.0903101{col 26}{space 2}  .017903{col 37}{space 1}   -5.04{col 46}{space 3}0.000{col 54}{space 4}-.1253994{col 67}{space 3}-.0552209
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2} .0034235{col 26}{space 2} .0214351{col 37}{space 1}    0.16{col 46}{space 3}0.873{col 54}{space 4}-.0385885{col 67}{space 3} .0454356
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.2253213{col 26}{space 2} .0215014{col 37}{space 1}  -10.48{col 46}{space 3}0.000{col 54}{space 4}-.2674633{col 67}{space 3}-.1831793
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2} .0234828{col 26}{space 2} .0177748{col 37}{space 1}    1.32{col 46}{space 3}0.186{col 54}{space 4}-.0113551{col 67}{space 3} .0583208
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2}-.0176504{col 26}{space 2} .0193146{col 37}{space 1}   -0.91{col 46}{space 3}0.361{col 54}{space 4}-.0555064{col 67}{space 3} .0202056
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2} .0202075{col 26}{space 2} .0171564{col 37}{space 1}    1.18{col 46}{space 3}0.239{col 54}{space 4}-.0134185{col 67}{space 3} .0538335
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2}-.6799298{col 26}{space 2} .0203113{col 37}{space 1}  -33.48{col 46}{space 3}0.000{col 54}{space 4}-.7197393{col 67}{space 3}-.6401203
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2}-.4064101{col 26}{space 2} .0288605{col 37}{space 1}  -14.08{col 46}{space 3}0.000{col 54}{space 4}-.4629757{col 67}{space 3}-.3498445
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.1061829{col 26}{space 2} .0177943{col 37}{space 1}   -5.97{col 46}{space 3}0.000{col 54}{space 4}-.1410592{col 67}{space 3}-.0713067
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2}-.1693631{col 26}{space 2} .0190834{col 37}{space 1}   -8.87{col 46}{space 3}0.000{col 54}{space 4}-.2067659{col 67}{space 3}-.1319603
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2} .0890687{col 26}{space 2} .0209526{col 37}{space 1}    4.25{col 46}{space 3}0.000{col 54}{space 4} .0480024{col 67}{space 3}  .130135
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2}-.2437229{col 26}{space 2} .0165262{col 37}{space 1}  -14.75{col 46}{space 3}0.000{col 54}{space 4}-.2761136{col 67}{space 3}-.2113321
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2} .1143722{col 26}{space 2} .0178885{col 37}{space 1}    6.39{col 46}{space 3}0.000{col 54}{space 4} .0793114{col 67}{space 3}  .149433
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.1061125{col 26}{space 2} .0228014{col 37}{space 1}   -4.65{col 46}{space 3}0.000{col 54}{space 4}-.1508024{col 67}{space 3}-.0614226
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2}-.3998192{col 26}{space 2} .0163138{col 37}{space 1}  -24.51{col 46}{space 3}0.000{col 54}{space 4}-.4317936{col 67}{space 3}-.3678448
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2}-.3284833{col 26}{space 2} .0282054{col 37}{space 1}  -11.65{col 46}{space 3}0.000{col 54}{space 4}-.3837649{col 67}{space 3}-.2732018
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2}-.1996414{col 26}{space 2} .0271723{col 37}{space 1}   -7.35{col 46}{space 3}0.000{col 54}{space 4}-.2528982{col 67}{space 3}-.1463846
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2}-.1009137{col 26}{space 2} .0181423{col 37}{space 1}   -5.56{col 46}{space 3}0.000{col 54}{space 4} -.136472{col 67}{space 3}-.0653554
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2} .1648507{col 26}{space 2} .0202544{col 37}{space 1}    8.14{col 46}{space 3}0.000{col 54}{space 4} .1251528{col 67}{space 3} .2045486
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2}-.4476719{col 26}{space 2} .0249873{col 37}{space 1}  -17.92{col 46}{space 3}0.000{col 54}{space 4} -.496646{col 67}{space 3}-.3986978
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2}-.0420083{col 26}{space 2} .0192424{col 37}{space 1}   -2.18{col 46}{space 3}0.029{col 54}{space 4}-.0797228{col 67}{space 3}-.0042938
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0747919{col 26}{space 2} .0198055{col 37}{space 1}   -3.78{col 46}{space 3}0.000{col 54}{space 4}  -.11361{col 67}{space 3}-.0359737
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0085078{col 26}{space 2} .0088525{col 37}{space 1}   -0.96{col 46}{space 3}0.337{col 54}{space 4}-.0258584{col 67}{space 3} .0088429
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .0050079{col 26}{space 2} .0118395{col 37}{space 1}    0.42{col 46}{space 3}0.672{col 54}{space 4}-.0181971{col 67}{space 3}  .028213
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0065623{col 26}{space 2}   .00802{col 37}{space 1}    0.82{col 46}{space 3}0.413{col 54}{space 4}-.0091565{col 67}{space 3} .0222812
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .0926387{col 26}{space 2} .0196612{col 37}{space 1}    4.71{col 46}{space 3}0.000{col 54}{space 4} .0541035{col 67}{space 3}  .131174
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0150269{col 26}{space 2} .0103961{col 37}{space 1}    1.45{col 46}{space 3}0.148{col 54}{space 4} -.005349{col 67}{space 3} .0354028
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0324764{col 26}{space 2} .0083325{col 37}{space 1}    3.90{col 46}{space 3}0.000{col 54}{space 4} .0161451{col 67}{space 3} .0488077
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0451126{col 26}{space 2} .0079615{col 37}{space 1}    5.67{col 46}{space 3}0.000{col 54}{space 4} .0295084{col 67}{space 3} .0607168
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0241997{col 26}{space 2} .0083781{col 37}{space 1}   -2.89{col 46}{space 3}0.004{col 54}{space 4}-.0406205{col 67}{space 3}-.0077789
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0030119{col 26}{space 2} .0004938{col 37}{space 1}    6.10{col 46}{space 3}0.000{col 54}{space 4} .0020442{col 67}{space 3} .0039797
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0025585{col 26}{space 2} .0005527{col 37}{space 1}   -4.63{col 46}{space 3}0.000{col 54}{space 4}-.0036418{col 67}{space 3}-.0014751
{txt}{space 6}female {c |}{col 14}{res}{space 2} .0150142{col 26}{space 2}  .002806{col 37}{space 1}    5.35{col 46}{space 3}0.000{col 54}{space 4} .0095146{col 67}{space 3} .0205138
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.1057191{col 26}{space 2}  .004378{col 37}{space 1}  -24.15{col 46}{space 3}0.000{col 54}{space 4}-.1142998{col 67}{space 3}-.0971384
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .7293458{col 26}{space 2} .0189843{col 37}{space 1}   38.42{col 46}{space 3}0.000{col 54}{space 4} .6921373{col 67}{space 3} .7665543
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 9.43e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0166244{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1690512{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}2357.12{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[often_without_cash]active - [often_without_cash]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}   18.18
{txt}{col 10}Prob > chi2 =  {res}  0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.03055193

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(DV Without Cash) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. 
. 
. *Model 7 - Working

. 
. mixed working active inactive cd* yd* age age2 female urban ||countrycode: || cluster:, emonly
{txt}note: cd30 omitted because of collinearity
note: cd36 omitted because of collinearity
note: yd12 omitted because of collinearity
{res}
{txt}Performing EM optimization: 

{res}{txt}Iteration 0:{col 16}log likelihood = {res}-62082.857
{txt}Iteration 1:{col 16}log likelihood = {res} -60622.61
{txt}Iteration 2:{col 16}log likelihood = {res}-60292.584
{txt}Iteration 3:{col 16}log likelihood = {res}-60172.995
{txt}Iteration 4:{col 16}log likelihood = {res} -60120.11
{txt}Iteration 5:{col 16}log likelihood = {res}-60093.939
{txt}Iteration 6:{col 16}log likelihood = {res}-60080.011
{txt}Iteration 7:{col 16}log likelihood = {res}-60072.209
{txt}Iteration 8:{col 16}log likelihood = {res}-60067.666
{txt}Iteration 9:{col 16}log likelihood = {res}-60064.934
{txt}Iteration 10:{col 16}log likelihood = {res}-60063.244
{txt}Iteration 11:{col 16}log likelihood = {res}-60062.171
{txt}Iteration 12:{col 16}log likelihood = {res}-60061.471
{txt}Iteration 13:{col 16}log likelihood = {res}    -60061
{txt}Iteration 14:{col 16}log likelihood = {res}-60060.675
{txt}Iteration 15:{col 16}log likelihood = {res}-60060.442
{txt}Iteration 16:{col 16}log likelihood = {res}-60060.269
{txt}Iteration 17:{col 16}log likelihood = {res}-60060.138
{txt}Iteration 18:{col 16}log likelihood = {res}-60060.033
{txt}Iteration 19:{col 16}log likelihood = {res}-60059.949
{txt}Iteration 20:{col 16}log likelihood = {res}-60059.878

{txt}Mixed-effects ML regression{col 49}Number of obs{col 67}={col 69}{res}    99,531

{txt}{hline 16}{c TT}{hline 44}
{col 17}{c |}{col 23}No. of{col 36}Observations per Group
{col 2}Group Variable{col 17}{c |}{col 23}Groups{col 33}Minimum{col 44}Average{col 55}Maximum
{hline 16}{c +}{hline 44}
{res}{col 5}countrycode{txt}{col 17}{c |}{res}{col 21}      35{col 31}      568{col 42}  2,843.7{col 53}   10,037
{col 9}cluster{txt}{col 17}{c |}{res}{col 21}   8,729{col 31}        1{col 42}     11.4{col 53}      606
{txt}{hline 16}{c BT}{hline 44}

{col 49}Wald chi2({res}51{txt}){col 67}={col 70}{res} 11351.08
{txt}Log likelihood = {res}-60059.878{col 49}{txt}Prob > chi2{col 67}={col 73}{res}0.0000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0450198{col 26}{space 2} .0054812{col 37}{space 1}    8.21{col 46}{space 3}0.000{col 54}{space 4} .0342769{col 67}{space 3} .0557628
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0059274{col 26}{space 2} .0063598{col 37}{space 1}    0.93{col 46}{space 3}0.351{col 54}{space 4}-.0065376{col 67}{space 3} .0183923
{txt}{space 9}cd1 {c |}{col 14}{res}{space 2} .0458914{col 26}{space 2} .0230522{col 37}{space 1}    1.99{col 46}{space 3}0.047{col 54}{space 4} .0007099{col 67}{space 3}  .091073
{txt}{space 9}cd2 {c |}{col 14}{res}{space 2} .0158725{col 26}{space 2} .0190388{col 37}{space 1}    0.83{col 46}{space 3}0.404{col 54}{space 4}-.0214427{col 67}{space 3} .0531878
{txt}{space 9}cd3 {c |}{col 14}{res}{space 2}-.0491538{col 26}{space 2} .0203751{col 37}{space 1}   -2.41{col 46}{space 3}0.016{col 54}{space 4}-.0890882{col 67}{space 3}-.0092194
{txt}{space 9}cd4 {c |}{col 14}{res}{space 2}-.1530598{col 26}{space 2} .0196733{col 37}{space 1}   -7.78{col 46}{space 3}0.000{col 54}{space 4}-.1916187{col 67}{space 3}-.1145009
{txt}{space 9}cd5 {c |}{col 14}{res}{space 2}-.1546477{col 26}{space 2} .0297623{col 37}{space 1}   -5.20{col 46}{space 3}0.000{col 54}{space 4}-.2129806{col 67}{space 3}-.0963147
{txt}{space 9}cd6 {c |}{col 14}{res}{space 2} .0293388{col 26}{space 2} .0226063{col 37}{space 1}    1.30{col 46}{space 3}0.194{col 54}{space 4}-.0149687{col 67}{space 3} .0736463
{txt}{space 9}cd7 {c |}{col 14}{res}{space 2} .0572606{col 26}{space 2} .0219223{col 37}{space 1}    2.61{col 46}{space 3}0.009{col 54}{space 4} .0142936{col 67}{space 3} .1002276
{txt}{space 9}cd8 {c |}{col 14}{res}{space 2}-.1029645{col 26}{space 2} .0230361{col 37}{space 1}   -4.47{col 46}{space 3}0.000{col 54}{space 4}-.1481145{col 67}{space 3}-.0578146
{txt}{space 9}cd9 {c |}{col 14}{res}{space 2} .1202552{col 26}{space 2}  .023907{col 37}{space 1}    5.03{col 46}{space 3}0.000{col 54}{space 4} .0733982{col 67}{space 3} .1671121
{txt}{space 8}cd10 {c |}{col 14}{res}{space 2}-.0609474{col 26}{space 2}  .031355{col 37}{space 1}   -1.94{col 46}{space 3}0.052{col 54}{space 4}-.1224021{col 67}{space 3} .0005073
{txt}{space 8}cd11 {c |}{col 14}{res}{space 2} .2431342{col 26}{space 2}  .017416{col 37}{space 1}   13.96{col 46}{space 3}0.000{col 54}{space 4} .2089995{col 67}{space 3}  .277269
{txt}{space 8}cd12 {c |}{col 14}{res}{space 2}-.1707719{col 26}{space 2} .0267784{col 37}{space 1}   -6.38{col 46}{space 3}0.000{col 54}{space 4}-.2232567{col 67}{space 3}-.1182872
{txt}{space 8}cd13 {c |}{col 14}{res}{space 2} .1598311{col 26}{space 2} .0180961{col 37}{space 1}    8.83{col 46}{space 3}0.000{col 54}{space 4} .1243635{col 67}{space 3} .1952987
{txt}{space 8}cd14 {c |}{col 14}{res}{space 2}-.0916625{col 26}{space 2} .0218458{col 37}{space 1}   -4.20{col 46}{space 3}0.000{col 54}{space 4}-.1344795{col 67}{space 3}-.0488456
{txt}{space 8}cd15 {c |}{col 14}{res}{space 2}-.0760521{col 26}{space 2}  .022607{col 37}{space 1}   -3.36{col 46}{space 3}0.001{col 54}{space 4} -.120361{col 67}{space 3}-.0317433
{txt}{space 8}cd16 {c |}{col 14}{res}{space 2}  .185318{col 26}{space 2} .0186414{col 37}{space 1}    9.94{col 46}{space 3}0.000{col 54}{space 4} .1487815{col 67}{space 3} .2218545
{txt}{space 8}cd17 {c |}{col 14}{res}{space 2} .0084785{col 26}{space 2} .0196697{col 37}{space 1}    0.43{col 46}{space 3}0.666{col 54}{space 4}-.0300734{col 67}{space 3} .0470303
{txt}{space 8}cd18 {c |}{col 14}{res}{space 2}-.1461592{col 26}{space 2} .0175559{col 37}{space 1}   -8.33{col 46}{space 3}0.000{col 54}{space 4}-.1805682{col 67}{space 3}-.1117503
{txt}{space 8}cd19 {c |}{col 14}{res}{space 2} .2975921{col 26}{space 2} .0213656{col 37}{space 1}   13.93{col 46}{space 3}0.000{col 54}{space 4} .2557163{col 67}{space 3} .3394679
{txt}{space 8}cd20 {c |}{col 14}{res}{space 2} .1156456{col 26}{space 2} .0305493{col 37}{space 1}    3.79{col 46}{space 3}0.000{col 54}{space 4} .0557702{col 67}{space 3} .1755211
{txt}{space 8}cd21 {c |}{col 14}{res}{space 2}-.0244554{col 26}{space 2}  .018272{col 37}{space 1}   -1.34{col 46}{space 3}0.181{col 54}{space 4}-.0602678{col 67}{space 3} .0113571
{txt}{space 8}cd22 {c |}{col 14}{res}{space 2} .1162462{col 26}{space 2}  .019702{col 37}{space 1}    5.90{col 46}{space 3}0.000{col 54}{space 4}  .077631{col 67}{space 3} .1548614
{txt}{space 8}cd23 {c |}{col 14}{res}{space 2}-.1388147{col 26}{space 2} .0220097{col 37}{space 1}   -6.31{col 46}{space 3}0.000{col 54}{space 4} -.181953{col 67}{space 3}-.0956765
{txt}{space 8}cd24 {c |}{col 14}{res}{space 2} .1759866{col 26}{space 2} .0170097{col 37}{space 1}   10.35{col 46}{space 3}0.000{col 54}{space 4} .1426483{col 67}{space 3} .2093249
{txt}{space 8}cd25 {c |}{col 14}{res}{space 2}-.0524439{col 26}{space 2} .0187431{col 37}{space 1}   -2.80{col 46}{space 3}0.005{col 54}{space 4}-.0891797{col 67}{space 3}-.0157081
{txt}{space 8}cd26 {c |}{col 14}{res}{space 2}-.0263084{col 26}{space 2} .0240309{col 37}{space 1}   -1.09{col 46}{space 3}0.274{col 54}{space 4} -.073408{col 67}{space 3} .0207913
{txt}{space 8}cd27 {c |}{col 14}{res}{space 2} .1245197{col 26}{space 2} .0166723{col 37}{space 1}    7.47{col 46}{space 3}0.000{col 54}{space 4} .0918425{col 67}{space 3} .1571969
{txt}{space 8}cd28 {c |}{col 14}{res}{space 2} .0828532{col 26}{space 2} .0299204{col 37}{space 1}    2.77{col 46}{space 3}0.006{col 54}{space 4} .0242102{col 67}{space 3} .1414962
{txt}{space 8}cd29 {c |}{col 14}{res}{space 2} .0074997{col 26}{space 2}  .028802{col 37}{space 1}    0.26{col 46}{space 3}0.795{col 54}{space 4}-.0489512{col 67}{space 3} .0639505
{txt}{space 8}cd30 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 8}cd31 {c |}{col 14}{res}{space 2} .1629044{col 26}{space 2} .0186388{col 37}{space 1}    8.74{col 46}{space 3}0.000{col 54}{space 4}  .126373{col 67}{space 3} .1994357
{txt}{space 8}cd32 {c |}{col 14}{res}{space 2}   -.0796{col 26}{space 2} .0213267{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.1213996{col 67}{space 3}-.0378003
{txt}{space 8}cd33 {c |}{col 14}{res}{space 2} .0342379{col 26}{space 2} .0263542{col 37}{space 1}    1.30{col 46}{space 3}0.194{col 54}{space 4}-.0174153{col 67}{space 3} .0858911
{txt}{space 8}cd34 {c |}{col 14}{res}{space 2} .1860023{col 26}{space 2} .0191745{col 37}{space 1}    9.70{col 46}{space 3}0.000{col 54}{space 4}  .148421{col 67}{space 3} .2235835
{txt}{space 8}cd35 {c |}{col 14}{res}{space 2}-.0279912{col 26}{space 2} .0197872{col 37}{space 1}   -1.41{col 46}{space 3}0.157{col 54}{space 4}-.0667734{col 67}{space 3}  .010791
{txt}{space 8}cd36 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd1 {c |}{col 14}{res}{space 2}-.0333745{col 26}{space 2} .0104753{col 37}{space 1}   -3.19{col 46}{space 3}0.001{col 54}{space 4}-.0539058{col 67}{space 3}-.0128433
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2}-.0269096{col 26}{space 2} .0112102{col 37}{space 1}   -2.40{col 46}{space 3}0.016{col 54}{space 4}-.0488811{col 67}{space 3}-.0049381
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0997179{col 26}{space 2} .0268142{col 37}{space 1}    3.72{col 46}{space 3}0.000{col 54}{space 4} .0471631{col 67}{space 3} .1522727
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2}-.0171272{col 26}{space 2} .0091572{col 37}{space 1}   -1.87{col 46}{space 3}0.061{col 54}{space 4} -.035075{col 67}{space 3} .0008205
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.0770166{col 26}{space 2} .0120778{col 37}{space 1}   -6.38{col 46}{space 3}0.000{col 54}{space 4}-.1006886{col 67}{space 3}-.0533447
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0369446{col 26}{space 2} .0083411{col 37}{space 1}   -4.43{col 46}{space 3}0.000{col 54}{space 4}-.0532928{col 67}{space 3}-.0205964
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}-.0754978{col 26}{space 2} .0202683{col 37}{space 1}   -3.72{col 46}{space 3}0.000{col 54}{space 4}-.1152229{col 67}{space 3}-.0357727
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}-.1104591{col 26}{space 2} .0107358{col 37}{space 1}  -10.29{col 46}{space 3}0.000{col 54}{space 4}-.1315009{col 67}{space 3}-.0894173
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0379383{col 26}{space 2} .0086371{col 37}{space 1}   -4.39{col 46}{space 3}0.000{col 54}{space 4}-.0548667{col 67}{space 3}-.0210099
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0593975{col 26}{space 2}  .008349{col 37}{space 1}   -7.11{col 46}{space 3}0.000{col 54}{space 4}-.0757613{col 67}{space 3}-.0430338
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}  .013281{col 26}{space 2} .0086647{col 37}{space 1}    1.53{col 46}{space 3}0.125{col 54}{space 4}-.0037015{col 67}{space 3} .0302636
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0326507{col 26}{space 2} .0004803{col 37}{space 1}   67.99{col 46}{space 3}0.000{col 54}{space 4} .0317094{col 67}{space 3}  .033592
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0373706{col 26}{space 2} .0005381{col 37}{space 1}  -69.45{col 46}{space 3}0.000{col 54}{space 4}-.0384253{col 67}{space 3}-.0363159
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1305191{col 26}{space 2} .0027374{col 37}{space 1}  -47.68{col 46}{space 3}0.000{col 54}{space 4}-.1358842{col 67}{space 3}-.1251539
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0701385{col 26}{space 2} .0043639{col 37}{space 1}   16.07{col 46}{space 3}0.000{col 54}{space 4} .0615855{col 67}{space 3} .0786916
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.2546518{col 26}{space 2} .0193877{col 37}{space 1}  -13.13{col 46}{space 3}0.000{col 54}{space 4}-.2926511{col 67}{space 3}-.2166526
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{hline 29}{c TT}{hline 48}
{col 3}Random-effects Parameters{col 30}{c |}{col 34}Estimate{col 45}Std. Err.{col 59}[95% Conf. Interval]
{hline 29}{c +}{hline 48}
{res}countrycode{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} 9.72e-06{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{res}cluster{txt}: Identity{col 30}{c |}
{col 19}var(_cons){col 30}{c |}{res}{col 33} .0196266{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c +}{hline 48}
{col 16}var(Residual){col 30}{c |}{res}{col 33} .1838479{col 44}        .{col 58}        .{col 70}        .
{txt}{hline 29}{c BT}{hline 48}
LR test vs. linear model:{col 27}chi2({res}2{txt}) = {res}2687.58{col 59}{txt}Prob > chi2 ={col 73}{res}0.0000

{txt}{p 0 6 4}Note: {help j_mixedlr##|_new:LR test is conservative} and provided only for reference.{p_end}
{p 0 6 4}Note: EM algorithm failed to converge{p_end}

{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}[working]active - [working]inactive = 0{p_end}

{txt}{col 12}chi2(  1) ={res}   36.04
{txt}{col 10}Prob > chi2 =  {res}  0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.03909249

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A4.doc, append dec(3) ctitle(DV Working) keep(active inactive) title(`v') nocons adds(Difference in difference, e(difference), Chi2 test: active-inactive=0, r(chi2), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A4.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. 
. 
. *Model 8 - Conley SEs

. 
. *xi: ols_spatial_HAC bribe_d active_binary_50 inactive_50 i.country i.year age age2 female urban, timevar(year) panelvar(cluster) lat(latitude) lon(longitude) distcutoff(500) lagcutoff(2)

. 
. *test active_binary_50-inactive_50=0

. 
. *estadd scalar difference = _b[active_binary_50]-_b[inactive_50]

. 
. *outreg2 using $results/ISQRR_FDI_A4.doc, ctitle(Conley SEs) keep(active_binary_50 inactive_50)  slow(100) adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)')addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 

. 
. 
. 
. 
. 
. **TABLE A6 - Alternative Controls

. 
. 
. 
. *Model 1 - All FDI

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. xi: reg bribe_d active inactive ln_gdp gdp_growth polity2 age age2 female urban working often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(22, 7012)       =  {res}    99.22
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0493
                                                {txt}Root MSE          =    {res} .36615

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0087678{col 26}{space 2} .0055655{col 37}{space 1}    1.58{col 46}{space 3}0.115{col 54}{space 4}-.0021422{col 67}{space 3} .0196778
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0523169{col 26}{space 2} .0085284{col 37}{space 1}    6.13{col 46}{space 3}0.000{col 54}{space 4} .0355987{col 67}{space 3} .0690351
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0176563{col 26}{space 2} .0032529{col 37}{space 1}    5.43{col 46}{space 3}0.000{col 54}{space 4} .0112796{col 67}{space 3}  .024033
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2} .0055966{col 26}{space 2} .0008977{col 37}{space 1}    6.23{col 46}{space 3}0.000{col 54}{space 4} .0038368{col 67}{space 3} .0073565
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0098227{col 26}{space 2} .0006611{col 37}{space 1}  -14.86{col 46}{space 3}0.000{col 54}{space 4}-.0111186{col 67}{space 3}-.0085269
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0024091{col 26}{space 2} .0004566{col 37}{space 1}    5.28{col 46}{space 3}0.000{col 54}{space 4} .0015141{col 67}{space 3} .0033041
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0046227{col 26}{space 2} .0004977{col 37}{space 1}   -9.29{col 46}{space 3}0.000{col 54}{space 4}-.0055984{col 67}{space 3}-.0036471
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0641394{col 26}{space 2} .0026068{col 37}{space 1}  -24.60{col 46}{space 3}0.000{col 54}{space 4}-.0692495{col 67}{space 3}-.0590292
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0303564{col 26}{space 2} .0050259{col 37}{space 1}    6.04{col 46}{space 3}0.000{col 54}{space 4} .0205041{col 67}{space 3} .0402087
{txt}{space 5}working {c |}{col 14}{res}{space 2} .0359235{col 26}{space 2}  .003471{col 37}{space 1}   10.35{col 46}{space 3}0.000{col 54}{space 4} .0291193{col 67}{space 3} .0427277
{txt}often_with~h {c |}{col 14}{res}{space 2} .0260309{col 26}{space 2} .0035163{col 37}{space 1}    7.40{col 46}{space 3}0.000{col 54}{space 4} .0191379{col 67}{space 3}  .032924
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2}-.0000769{col 26}{space 2} .0143353{col 37}{space 1}   -0.01{col 46}{space 3}0.996{col 54}{space 4}-.0281785{col 67}{space 3} .0280246
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .0554429{col 26}{space 2} .0127095{col 37}{space 1}    4.36{col 46}{space 3}0.000{col 54}{space 4} .0305284{col 67}{space 3} .0803574
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .0160335{col 26}{space 2} .0155542{col 37}{space 1}    1.03{col 46}{space 3}0.303{col 54}{space 4}-.0144574{col 67}{space 3} .0465245
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0742299{col 26}{space 2} .0230022{col 37}{space 1}   -3.23{col 46}{space 3}0.001{col 54}{space 4}-.1193211{col 67}{space 3}-.0291386
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1158331{col 26}{space 2} .0236986{col 37}{space 1}   -4.89{col 46}{space 3}0.000{col 54}{space 4}-.1622895{col 67}{space 3}-.0693767
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0953378{col 26}{space 2} .0226823{col 37}{space 1}   -4.20{col 46}{space 3}0.000{col 54}{space 4} -.139802{col 67}{space 3}-.0508736
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0497077{col 26}{space 2} .0252861{col 37}{space 1}   -1.97{col 46}{space 3}0.049{col 54}{space 4} -.099276{col 67}{space 3}-.0001393
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0855315{col 26}{space 2} .0229429{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.1305065{col 67}{space 3}-.0405565
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0530847{col 26}{space 2}  .024152{col 37}{space 1}   -2.20{col 46}{space 3}0.028{col 54}{space 4}-.1004299{col 67}{space 3}-.0057396
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} -.168202{col 26}{space 2} .0226276{col 37}{space 1}   -7.43{col 46}{space 3}0.000{col 54}{space 4}-.2125589{col 67}{space 3}-.1238452
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1241954{col 26}{space 2}  .023684{col 37}{space 1}   -5.24{col 46}{space 3}0.000{col 54}{space 4}-.1706232{col 67}{space 3}-.0777675
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.2060289{col 26}{space 2} .0885436{col 37}{space 1}   -2.33{col 46}{space 3}0.020{col 54}{space 4}-.3796011{col 67}{space 3}-.0324566
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}   20.63
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.04354912

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(All FDI) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 2 - FDI from High Corruption Countries

. 
. gen active=active50_highcorr

. 
. gen inactive=inactive50_highcorr

. 
. xi: reg bribe_d active inactive ln_gdp gdp_growth polity2 age age2 female urban working often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(22, 7012)       =  {res}    98.98
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0492
                                                {txt}Root MSE          =    {res} .36617

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0161739{col 26}{space 2} .0072882{col 37}{space 1}    2.22{col 46}{space 3}0.027{col 54}{space 4} .0018868{col 67}{space 3}  .030461
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0558568{col 26}{space 2} .0102488{col 37}{space 1}    5.45{col 46}{space 3}0.000{col 54}{space 4} .0357661{col 67}{space 3} .0759476
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0185303{col 26}{space 2}  .003246{col 37}{space 1}    5.71{col 46}{space 3}0.000{col 54}{space 4} .0121672{col 67}{space 3} .0248933
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2} .0055786{col 26}{space 2} .0008933{col 37}{space 1}    6.24{col 46}{space 3}0.000{col 54}{space 4} .0038274{col 67}{space 3} .0073298
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0095195{col 26}{space 2} .0006602{col 37}{space 1}  -14.42{col 46}{space 3}0.000{col 54}{space 4}-.0108138{col 67}{space 3}-.0082252
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0024851{col 26}{space 2} .0004586{col 37}{space 1}    5.42{col 46}{space 3}0.000{col 54}{space 4} .0015862{col 67}{space 3} .0033841
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0047012{col 26}{space 2}    .0005{col 37}{space 1}   -9.40{col 46}{space 3}0.000{col 54}{space 4}-.0056814{col 67}{space 3}-.0037209
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0641295{col 26}{space 2} .0026049{col 37}{space 1}  -24.62{col 46}{space 3}0.000{col 54}{space 4}-.0692358{col 67}{space 3}-.0590232
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0299715{col 26}{space 2} .0049986{col 37}{space 1}    6.00{col 46}{space 3}0.000{col 54}{space 4} .0201728{col 67}{space 3} .0397702
{txt}{space 5}working {c |}{col 14}{res}{space 2} .0361016{col 26}{space 2} .0034606{col 37}{space 1}   10.43{col 46}{space 3}0.000{col 54}{space 4} .0293179{col 67}{space 3} .0428854
{txt}often_with~h {c |}{col 14}{res}{space 2} .0265083{col 26}{space 2} .0035412{col 37}{space 1}    7.49{col 46}{space 3}0.000{col 54}{space 4} .0195664{col 67}{space 3} .0334502
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2}-.0027663{col 26}{space 2} .0144822{col 37}{space 1}   -0.19{col 46}{space 3}0.849{col 54}{space 4}-.0311559{col 67}{space 3} .0256232
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .0542904{col 26}{space 2} .0128209{col 37}{space 1}    4.23{col 46}{space 3}0.000{col 54}{space 4} .0291575{col 67}{space 3} .0794233
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .0111118{col 26}{space 2} .0156877{col 37}{space 1}    0.71{col 46}{space 3}0.479{col 54}{space 4}-.0196408{col 67}{space 3} .0418645
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0699288{col 26}{space 2} .0228187{col 37}{space 1}   -3.06{col 46}{space 3}0.002{col 54}{space 4}-.1146602{col 67}{space 3}-.0251973
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} -.112775{col 26}{space 2} .0235588{col 37}{space 1}   -4.79{col 46}{space 3}0.000{col 54}{space 4}-.1589573{col 67}{space 3}-.0665926
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0919998{col 26}{space 2} .0224716{col 37}{space 1}   -4.09{col 46}{space 3}0.000{col 54}{space 4}-.1360509{col 67}{space 3}-.0479487
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0482935{col 26}{space 2} .0251819{col 37}{space 1}   -1.92{col 46}{space 3}0.055{col 54}{space 4}-.0976576{col 67}{space 3} .0010707
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0832403{col 26}{space 2} .0228007{col 37}{space 1}   -3.65{col 46}{space 3}0.000{col 54}{space 4}-.1279367{col 67}{space 3} -.038544
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0487869{col 26}{space 2} .0239934{col 37}{space 1}   -2.03{col 46}{space 3}0.042{col 54}{space 4}-.0958213{col 67}{space 3}-.0017526
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1679484{col 26}{space 2} .0224756{col 37}{space 1}   -7.47{col 46}{space 3}0.000{col 54}{space 4}-.2120073{col 67}{space 3}-.1238895
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1221968{col 26}{space 2} .0235214{col 37}{space 1}   -5.20{col 46}{space 3}0.000{col 54}{space 4}-.1683059{col 67}{space 3}-.0760877
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} -.229183{col 26}{space 2} .0884204{col 37}{space 1}   -2.59{col 46}{space 3}0.010{col 54}{space 4}-.4025138{col 67}{space 3}-.0558522
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}   10.42
{txt}{col 13}Prob > F ={res}    0.0013

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.03968289

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(High Corr FDI) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 3 - FDI from Low Corruption Counties

. 
. gen active=active50_lowcorr

. 
. gen inactive=inactive50_lowcorr

. 
. xi: reg bribe_d active inactive ln_gdp gdp_growth polity2 age age2 female urban working often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(22, 7012)       =  {res}    98.99
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0479
                                                {txt}Root MSE          =    {res} .36642

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0101108{col 26}{space 2} .0058497{col 37}{space 1}   -1.73{col 46}{space 3}0.084{col 54}{space 4}-.0215779{col 67}{space 3} .0013563
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0268236{col 26}{space 2} .0132301{col 37}{space 1}    2.03{col 46}{space 3}0.043{col 54}{space 4} .0008887{col 67}{space 3} .0527586
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0170143{col 26}{space 2} .0033003{col 37}{space 1}    5.16{col 46}{space 3}0.000{col 54}{space 4} .0105447{col 67}{space 3} .0234839
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2} .0054734{col 26}{space 2} .0008869{col 37}{space 1}    6.17{col 46}{space 3}0.000{col 54}{space 4} .0037348{col 67}{space 3} .0072119
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0097539{col 26}{space 2} .0006767{col 37}{space 1}  -14.41{col 46}{space 3}0.000{col 54}{space 4}-.0110803{col 67}{space 3}-.0084274
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0024103{col 26}{space 2} .0004582{col 37}{space 1}    5.26{col 46}{space 3}0.000{col 54}{space 4} .0015122{col 67}{space 3} .0033084
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0046228{col 26}{space 2} .0004992{col 37}{space 1}   -9.26{col 46}{space 3}0.000{col 54}{space 4}-.0056015{col 67}{space 3}-.0036442
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0639479{col 26}{space 2} .0025986{col 37}{space 1}  -24.61{col 46}{space 3}0.000{col 54}{space 4}-.0690419{col 67}{space 3} -.058854
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0350859{col 26}{space 2} .0051933{col 37}{space 1}    6.76{col 46}{space 3}0.000{col 54}{space 4} .0249054{col 67}{space 3} .0452665
{txt}{space 5}working {c |}{col 14}{res}{space 2} .0365818{col 26}{space 2} .0034719{col 37}{space 1}   10.54{col 46}{space 3}0.000{col 54}{space 4} .0297758{col 67}{space 3} .0433879
{txt}often_with~h {c |}{col 14}{res}{space 2} .0252868{col 26}{space 2} .0035405{col 37}{space 1}    7.14{col 46}{space 3}0.000{col 54}{space 4} .0183463{col 67}{space 3} .0322274
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2} .0002821{col 26}{space 2} .0145471{col 37}{space 1}    0.02{col 46}{space 3}0.985{col 54}{space 4}-.0282347{col 67}{space 3} .0287989
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2}   .05365{col 26}{space 2} .0128649{col 37}{space 1}    4.17{col 46}{space 3}0.000{col 54}{space 4} .0284309{col 67}{space 3} .0788691
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .0118242{col 26}{space 2} .0159391{col 37}{space 1}    0.74{col 46}{space 3}0.458{col 54}{space 4}-.0194212{col 67}{space 3} .0430697
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0672961{col 26}{space 2} .0226199{col 37}{space 1}   -2.98{col 46}{space 3}0.003{col 54}{space 4} -.111638{col 67}{space 3}-.0229542
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1155748{col 26}{space 2} .0235527{col 37}{space 1}   -4.91{col 46}{space 3}0.000{col 54}{space 4}-.1617452{col 67}{space 3}-.0694044
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0927216{col 26}{space 2} .0224715{col 37}{space 1}   -4.13{col 46}{space 3}0.000{col 54}{space 4}-.1367726{col 67}{space 3}-.0486706
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0490863{col 26}{space 2} .0252473{col 37}{space 1}   -1.94{col 46}{space 3}0.052{col 54}{space 4}-.0985786{col 67}{space 3} .0004061
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0851526{col 26}{space 2} .0227674{col 37}{space 1}   -3.74{col 46}{space 3}0.000{col 54}{space 4}-.1297836{col 67}{space 3}-.0405216
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0520562{col 26}{space 2}  .024058{col 37}{space 1}   -2.16{col 46}{space 3}0.031{col 54}{space 4}-.0992172{col 67}{space 3}-.0048951
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1694686{col 26}{space 2} .0224884{col 37}{space 1}   -7.54{col 46}{space 3}0.000{col 54}{space 4}-.2135526{col 67}{space 3}-.1253845
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1246567{col 26}{space 2} .0236237{col 37}{space 1}   -5.28{col 46}{space 3}0.000{col 54}{space 4}-.1709663{col 67}{space 3}-.0783471
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.1810001{col 26}{space 2} .0896799{col 37}{space 1}   -2.02{col 46}{space 3}0.044{col 54}{space 4}-.3567999{col 67}{space 3}-.0052003
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}    7.28
{txt}{col 13}Prob > F ={res}    0.0070

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.03693445

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(Low Corr FDI) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 4 - FDI from High Proportion of ABC Signatory countries

. 
. gen active=active50_highwgb

. 
. gen inactive=inactive50_highwgb

. 
. xi: reg bribe_d active inactive ln_gdp gdp_growth polity2 age age2 female urban working often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(22, 7012)       =  {res}    98.75
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0478
                                                {txt}Root MSE          =    {res} .36644

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0067996{col 26}{space 2} .0081404{col 37}{space 1}    0.84{col 46}{space 3}0.404{col 54}{space 4}-.0091581{col 67}{space 3} .0227574
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0292444{col 26}{space 2} .0125475{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4} .0046475{col 67}{space 3} .0538413
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0159925{col 26}{space 2} .0033294{col 37}{space 1}    4.80{col 46}{space 3}0.000{col 54}{space 4} .0094658{col 67}{space 3} .0225192
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2} .0056088{col 26}{space 2}  .000887{col 37}{space 1}    6.32{col 46}{space 3}0.000{col 54}{space 4}   .00387{col 67}{space 3} .0073476
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0099722{col 26}{space 2} .0006573{col 37}{space 1}  -15.17{col 46}{space 3}0.000{col 54}{space 4}-.0112606{col 67}{space 3}-.0086837
{txt}{space 9}age {c |}{col 14}{res}{space 2}    .0024{col 26}{space 2} .0004569{col 37}{space 1}    5.25{col 46}{space 3}0.000{col 54}{space 4} .0015043{col 67}{space 3} .0032956
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0046261{col 26}{space 2} .0004981{col 37}{space 1}   -9.29{col 46}{space 3}0.000{col 54}{space 4}-.0056026{col 67}{space 3}-.0036496
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0640951{col 26}{space 2} .0026006{col 37}{space 1}  -24.65{col 46}{space 3}0.000{col 54}{space 4}-.0691931{col 67}{space 3}-.0589972
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0336175{col 26}{space 2} .0050464{col 37}{space 1}    6.66{col 46}{space 3}0.000{col 54}{space 4} .0237251{col 67}{space 3} .0435099
{txt}{space 5}working {c |}{col 14}{res}{space 2} .0360547{col 26}{space 2} .0034527{col 37}{space 1}   10.44{col 46}{space 3}0.000{col 54}{space 4} .0292863{col 67}{space 3} .0428231
{txt}often_with~h {c |}{col 14}{res}{space 2} .0260771{col 26}{space 2} .0035437{col 37}{space 1}    7.36{col 46}{space 3}0.000{col 54}{space 4} .0191303{col 67}{space 3} .0330239
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2} .0000131{col 26}{space 2} .0145514{col 37}{space 1}    0.00{col 46}{space 3}0.999{col 54}{space 4}-.0285121{col 67}{space 3} .0285383
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .0526751{col 26}{space 2} .0128901{col 37}{space 1}    4.09{col 46}{space 3}0.000{col 54}{space 4} .0274066{col 67}{space 3} .0779436
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .0123904{col 26}{space 2} .0155455{col 37}{space 1}    0.80{col 46}{space 3}0.425{col 54}{space 4}-.0180835{col 67}{space 3} .0428642
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0656365{col 26}{space 2} .0226277{col 37}{space 1}   -2.90{col 46}{space 3}0.004{col 54}{space 4}-.1099936{col 67}{space 3}-.0212794
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1124947{col 26}{space 2} .0234402{col 37}{space 1}   -4.80{col 46}{space 3}0.000{col 54}{space 4}-.1584447{col 67}{space 3}-.0665448
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0904032{col 26}{space 2} .0224113{col 37}{space 1}   -4.03{col 46}{space 3}0.000{col 54}{space 4}-.1343361{col 67}{space 3}-.0464702
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0483773{col 26}{space 2}  .025116{col 37}{space 1}   -1.93{col 46}{space 3}0.054{col 54}{space 4}-.0976123{col 67}{space 3} .0008577
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0846215{col 26}{space 2} .0227095{col 37}{space 1}   -3.73{col 46}{space 3}0.000{col 54}{space 4}-.1291389{col 67}{space 3}-.0401041
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0537713{col 26}{space 2} .0240071{col 37}{space 1}   -2.24{col 46}{space 3}0.025{col 54}{space 4}-.1008325{col 67}{space 3}  -.00671
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1687874{col 26}{space 2} .0224134{col 37}{space 1}   -7.53{col 46}{space 3}0.000{col 54}{space 4}-.2127245{col 67}{space 3}-.1248502
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1249058{col 26}{space 2} .0235554{col 37}{space 1}   -5.30{col 46}{space 3}0.000{col 54}{space 4}-.1710814{col 67}{space 3}-.0787301
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.1585756{col 26}{space 2} .0904669{col 37}{space 1}   -1.75{col 46}{space 3}0.080{col 54}{space 4}-.3359181{col 67}{space 3} .0187669
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}    2.37
{txt}{col 13}Prob > F ={res}    0.1239

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.02244478

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(High ABC) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 5 - FDI from Low Proportion of ABC Signatory countries

. 
. gen active=active50_lowwgb

. 
. gen inactive=inactive50_lowwgb

. 
. xi: reg bribe_d active inactive ln_gdp gdp_growth polity2 age age2 female urban working often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(22, 7012)       =  {res}    98.87
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.0490
                                                {txt}Root MSE          =    {res}  .3662

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0001437{col 26}{space 2} .0058954{col 37}{space 1}   -0.02{col 46}{space 3}0.981{col 54}{space 4}-.0117004{col 67}{space 3}  .011413
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0514806{col 26}{space 2} .0101597{col 37}{space 1}    5.07{col 46}{space 3}0.000{col 54}{space 4} .0315645{col 67}{space 3} .0713968
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0190072{col 26}{space 2} .0032381{col 37}{space 1}    5.87{col 46}{space 3}0.000{col 54}{space 4} .0126596{col 67}{space 3} .0253549
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2} .0054985{col 26}{space 2}  .000899{col 37}{space 1}    6.12{col 46}{space 3}0.000{col 54}{space 4} .0037362{col 67}{space 3} .0072608
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0096525{col 26}{space 2} .0006627{col 37}{space 1}  -14.56{col 46}{space 3}0.000{col 54}{space 4}-.0109517{col 67}{space 3}-.0083534
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0023733{col 26}{space 2} .0004566{col 37}{space 1}    5.20{col 46}{space 3}0.000{col 54}{space 4} .0014781{col 67}{space 3} .0032684
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0045806{col 26}{space 2} .0004976{col 37}{space 1}   -9.21{col 46}{space 3}0.000{col 54}{space 4}-.0055559{col 67}{space 3}-.0036052
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0640442{col 26}{space 2}  .002606{col 37}{space 1}  -24.58{col 46}{space 3}0.000{col 54}{space 4}-.0691528{col 67}{space 3}-.0589356
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0321822{col 26}{space 2} .0051463{col 37}{space 1}    6.25{col 46}{space 3}0.000{col 54}{space 4}  .022094{col 67}{space 3} .0422705
{txt}{space 5}working {c |}{col 14}{res}{space 2} .0363289{col 26}{space 2} .0034801{col 37}{space 1}   10.44{col 46}{space 3}0.000{col 54}{space 4} .0295069{col 67}{space 3} .0431508
{txt}often_with~h {c |}{col 14}{res}{space 2} .0259029{col 26}{space 2} .0035456{col 37}{space 1}    7.31{col 46}{space 3}0.000{col 54}{space 4} .0189524{col 67}{space 3} .0328534
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2} .0026751{col 26}{space 2} .0143016{col 37}{space 1}    0.19{col 46}{space 3}0.852{col 54}{space 4}-.0253603{col 67}{space 3} .0307105
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .0590776{col 26}{space 2} .0127766{col 37}{space 1}    4.62{col 46}{space 3}0.000{col 54}{space 4} .0340316{col 67}{space 3} .0841236
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .0185815{col 26}{space 2}  .015885{col 37}{space 1}    1.17{col 46}{space 3}0.242{col 54}{space 4} -.012558{col 67}{space 3}  .049721
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.0732902{col 26}{space 2} .0229468{col 37}{space 1}   -3.19{col 46}{space 3}0.001{col 54}{space 4}-.1182729{col 67}{space 3}-.0283076
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1175689{col 26}{space 2} .0236916{col 37}{space 1}   -4.96{col 46}{space 3}0.000{col 54}{space 4}-.1640115{col 67}{space 3}-.0711262
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.0967633{col 26}{space 2} .0227124{col 37}{space 1}   -4.26{col 46}{space 3}0.000{col 54}{space 4}-.1412864{col 67}{space 3}-.0522402
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0502988{col 26}{space 2} .0253111{col 37}{space 1}   -1.99{col 46}{space 3}0.047{col 54}{space 4}-.0999163{col 67}{space 3}-.0006813
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.0865453{col 26}{space 2} .0230121{col 37}{space 1}   -3.76{col 46}{space 3}0.000{col 54}{space 4} -.131656{col 67}{space 3}-.0414346
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0533792{col 26}{space 2} .0242312{col 37}{space 1}   -2.20{col 46}{space 3}0.028{col 54}{space 4}-.1008796{col 67}{space 3}-.0058788
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1696539{col 26}{space 2} .0226882{col 37}{space 1}   -7.48{col 46}{space 3}0.000{col 54}{space 4}-.2141296{col 67}{space 3}-.1251782
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1258556{col 26}{space 2}  .023726{col 37}{space 1}   -5.30{col 46}{space 3}0.000{col 54}{space 4}-.1723658{col 67}{space 3}-.0793454
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.2355599{col 26}{space 2} .0884693{col 37}{space 1}   -2.66{col 46}{space 3}0.008{col 54}{space 4}-.4089866{col 67}{space 3}-.0621333
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}   21.23
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.0516243

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(Low ABC) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *Model 6 - Often Without Cash

. 
. gen active=active_binary_50

. 
. gen inactive=inactive_50

. 
. xi: reg often_without_cash active inactive ln_gdp gdp_growth polity2 age age2 female urban working i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(21, 7012)       =  {res}   264.82
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1340
                                                {txt}Root MSE          =    {res} .45743

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}often_with~h{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0902756{col 26}{space 2} .0081477{col 37}{space 1}  -11.08{col 46}{space 3}0.000{col 54}{space 4}-.1062475{col 67}{space 3}-.0743037
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} -.000505{col 26}{space 2} .0093656{col 37}{space 1}   -0.05{col 46}{space 3}0.957{col 54}{space 4}-.0188645{col 67}{space 3} .0178545
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2}-.0162275{col 26}{space 2} .0050582{col 37}{space 1}   -3.21{col 46}{space 3}0.001{col 54}{space 4}-.0261431{col 67}{space 3}-.0063119
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2}-.0033092{col 26}{space 2} .0008124{col 37}{space 1}   -4.07{col 46}{space 3}0.000{col 54}{space 4}-.0049017{col 67}{space 3}-.0017167
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}-.0150021{col 26}{space 2} .0009775{col 37}{space 1}  -15.35{col 46}{space 3}0.000{col 54}{space 4}-.0169182{col 67}{space 3}-.0130859
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0067688{col 26}{space 2} .0006619{col 37}{space 1}   10.23{col 46}{space 3}0.000{col 54}{space 4} .0054713{col 67}{space 3} .0080663
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0073909{col 26}{space 2} .0007295{col 37}{space 1}  -10.13{col 46}{space 3}0.000{col 54}{space 4} -.008821{col 67}{space 3}-.0059609
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.0011886{col 26}{space 2} .0029524{col 37}{space 1}   -0.40{col 46}{space 3}0.687{col 54}{space 4}-.0069763{col 67}{space 3}  .004599
{txt}{space 7}urban {c |}{col 14}{res}{space 2}-.1124634{col 26}{space 2} .0075892{col 37}{space 1}  -14.82{col 46}{space 3}0.000{col 54}{space 4}-.1273406{col 67}{space 3}-.0975862
{txt}{space 5}working {c |}{col 14}{res}{space 2} -.111496{col 26}{space 2} .0044784{col 37}{space 1}  -24.90{col 46}{space 3}0.000{col 54}{space 4}-.1202751{col 67}{space 3} -.102717
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2} .3015295{col 26}{space 2} .0236271{col 37}{space 1}   12.76{col 46}{space 3}0.000{col 54}{space 4} .2552133{col 67}{space 3} .3478457
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .1646821{col 26}{space 2} .0174795{col 37}{space 1}    9.42{col 46}{space 3}0.000{col 54}{space 4} .1304171{col 67}{space 3} .1989472
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2} .2197921{col 26}{space 2} .0225022{col 37}{space 1}    9.77{col 46}{space 3}0.000{col 54}{space 4}  .175681{col 67}{space 3} .2639031
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2}-.1294663{col 26}{space 2}   .01982{col 37}{space 1}   -6.53{col 46}{space 3}0.000{col 54}{space 4}-.1683194{col 67}{space 3}-.0906132
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.1458567{col 26}{space 2} .0215863{col 37}{space 1}   -6.76{col 46}{space 3}0.000{col 54}{space 4}-.1881723{col 67}{space 3}-.1035411
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2}-.1209451{col 26}{space 2}  .019626{col 37}{space 1}   -6.16{col 46}{space 3}0.000{col 54}{space 4} -.159418{col 67}{space 3}-.0824723
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.1123741{col 26}{space 2} .0221946{col 37}{space 1}   -5.06{col 46}{space 3}0.000{col 54}{space 4}-.1558823{col 67}{space 3}-.0688659
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2}-.1399324{col 26}{space 2} .0190643{col 37}{space 1}   -7.34{col 46}{space 3}0.000{col 54}{space 4}-.1773043{col 67}{space 3}-.1025606
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.2059724{col 26}{space 2} .0220303{col 37}{space 1}   -9.35{col 46}{space 3}0.000{col 54}{space 4}-.2491584{col 67}{space 3}-.1627863
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.1406486{col 26}{space 2} .0197545{col 37}{space 1}   -7.12{col 46}{space 3}0.000{col 54}{space 4}-.1793734{col 67}{space 3}-.1019239
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.1637377{col 26}{space 2} .0217706{col 37}{space 1}   -7.52{col 46}{space 3}0.000{col 54}{space 4}-.2064146{col 67}{space 3}-.1210607
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 1.077357{col 26}{space 2} .1340908{col 37}{space 1}    8.03{col 46}{space 3}0.000{col 54}{space 4} .8144983{col 67}{space 3} 1.340215
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}   73.26
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}-.0897706

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(DV Without Cash) title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. 
. 
. *Model 7 - Working

. 
. xi: reg working active inactive ln_gdp gdp_growth polity2 age age2 female urban often_without_cash i.psector yd*, cl(cluster)
{txt}i.psector{col 19}_Ipsector_1-4{col 39}(_Ipsector_1 for pse~r==Business Services omitted)
note: yd1 omitted because of collinearity
note: yd2 omitted because of collinearity
note: yd3 omitted because of collinearity
note: yd7 omitted because of collinearity

Linear regression                               Number of obs     = {res}    74,936
                                                {txt}F(21, 7012)       =  {res}   340.12
                                                {txt}Prob > F          = {res}    0.0000
                                                {txt}R-squared         = {res}    0.1195
                                                {txt}Root MSE          =    {res} .45755

{txt}{ralign 78:(Std. Err. adjusted for {res:7,013} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     working{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2} .0665902{col 26}{space 2}  .006336{col 37}{space 1}   10.51{col 46}{space 3}0.000{col 54}{space 4} .0541698{col 67}{space 3} .0790106
{txt}{space 4}inactive {c |}{col 14}{res}{space 2} .0140671{col 26}{space 2} .0086701{col 37}{space 1}    1.62{col 46}{space 3}0.105{col 54}{space 4}-.0029289{col 67}{space 3} .0310632
{txt}{space 6}ln_gdp {c |}{col 14}{res}{space 2} .0607744{col 26}{space 2} .0030012{col 37}{space 1}   20.25{col 46}{space 3}0.000{col 54}{space 4} .0548912{col 67}{space 3} .0666576
{txt}{space 2}gdp_growth {c |}{col 14}{res}{space 2}-.0017059{col 26}{space 2} .0008286{col 37}{space 1}   -2.06{col 46}{space 3}0.040{col 54}{space 4}-.0033301{col 67}{space 3}-.0000817
{txt}{space 5}polity2 {c |}{col 14}{res}{space 2}  .003515{col 26}{space 2} .0007903{col 37}{space 1}    4.45{col 46}{space 3}0.000{col 54}{space 4} .0019658{col 67}{space 3} .0050641
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0353118{col 26}{space 2} .0008151{col 37}{space 1}   43.32{col 46}{space 3}0.000{col 54}{space 4}  .033714{col 67}{space 3} .0369097
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0406891{col 26}{space 2} .0009113{col 37}{space 1}  -44.65{col 46}{space 3}0.000{col 54}{space 4}-.0424755{col 67}{space 3}-.0389027
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1335979{col 26}{space 2} .0033124{col 37}{space 1}  -40.33{col 46}{space 3}0.000{col 54}{space 4}-.1400912{col 67}{space 3}-.1271045
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0432102{col 26}{space 2} .0056413{col 37}{space 1}    7.66{col 46}{space 3}0.000{col 54}{space 4} .0321515{col 67}{space 3} .0542689
{txt}often_with~h {c |}{col 14}{res}{space 2}-.1115545{col 26}{space 2} .0044079{col 37}{space 1}  -25.31{col 46}{space 3}0.000{col 54}{space 4}-.1201952{col 67}{space 3}-.1029137
{txt}{space 1}_Ipsector_2 {c |}{col 14}{res}{space 2} .1565994{col 26}{space 2} .0152693{col 37}{space 1}   10.26{col 46}{space 3}0.000{col 54}{space 4}  .126667{col 67}{space 3} .1865318
{txt}{space 1}_Ipsector_3 {c |}{col 14}{res}{space 2} .1371805{col 26}{space 2} .0112901{col 37}{space 1}   12.15{col 46}{space 3}0.000{col 54}{space 4} .1150486{col 67}{space 3} .1593125
{txt}{space 1}_Ipsector_4 {c |}{col 14}{res}{space 2}-.0107945{col 26}{space 2} .0179693{col 37}{space 1}   -0.60{col 46}{space 3}0.548{col 54}{space 4}-.0460198{col 67}{space 3} .0244307
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd2 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd3 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd4 {c |}{col 14}{res}{space 2} .0212749{col 26}{space 2} .0184639{col 37}{space 1}    1.15{col 46}{space 3}0.249{col 54}{space 4}-.0149199{col 67}{space 3} .0574697
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}-.0183004{col 26}{space 2} .0227211{col 37}{space 1}   -0.81{col 46}{space 3}0.421{col 54}{space 4}-.0628407{col 67}{space 3} .0262399
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0182388{col 26}{space 2} .0185291{col 37}{space 1}    0.98{col 46}{space 3}0.325{col 54}{space 4}-.0180837{col 67}{space 3} .0545614
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}yd8 {c |}{col 14}{res}{space 2}-.0369109{col 26}{space 2} .0210731{col 37}{space 1}   -1.75{col 46}{space 3}0.080{col 54}{space 4}-.0782204{col 67}{space 3} .0043987
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0090364{col 26}{space 2} .0180762{col 37}{space 1}    0.50{col 46}{space 3}0.617{col 54}{space 4}-.0263985{col 67}{space 3} .0444713
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}-.0432771{col 26}{space 2} .0196524{col 37}{space 1}   -2.20{col 46}{space 3}0.028{col 54}{space 4}-.0818016{col 67}{space 3}-.0047525
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} .0920299{col 26}{space 2} .0184911{col 37}{space 1}    4.98{col 46}{space 3}0.000{col 54}{space 4} .0557818{col 67}{space 3}  .128278
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}-.0294096{col 26}{space 2} .0195331{col 37}{space 1}   -1.51{col 46}{space 3}0.132{col 54}{space 4}-.0677003{col 67}{space 3} .0088812
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-1.780194{col 26}{space 2} .0815384{col 37}{space 1}  -21.83{col 46}{space 3}0.000{col 54}{space 4}-1.940034{col 67}{space 3}-1.620354
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. 
. test active-inactive=0

{p 0 7}{space 1}{text:( 1)}{space 1} {res}active - inactive = 0{p_end}

{txt}       F(  1,  7012) ={res}   32.23
{txt}{col 13}Prob > F ={res}    0.0000

{com}. 
. estadd scalar difference = _b[active]-_b[inactive]

{txt}added scalar:
         e(difference) =  {res}.05252305

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A6.doc, append dec(3) ctitle(DV Working)  title(`v') nocons adds(Difference in difference, e(difference), F test: active-inactive=0, r(F), p value, `r(p)') adec(3)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Country FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A6.txt""':seeout}

{com}. 
. drop active inactive

. 
. 
. 
. *** Collapse by cluster to use cluster quasi-panel to test cluster FE and cluster wealth diff-in-diff

. 
. 
. 
. collapse (mean) bribe_d active_count* inactive* active_binary* active_amount* mean_cpi* mean_wgb* g_lat g_lon age age2 urban rural femal male education meeting raisedissue demonstrated discusspolitics working member_religious member_union member_business member_development member_other corruption_president_office corruption_elected_leaders corruption_government_officials corruption_police corruption_border_officials corruption_judges corruption_local_businessmen corruption_foreign_businessmen corruption_teachers corruption_religious_leaders corruption_NGO_leaders bribe_permit bribe_school bribe_service bribe_border bribe_police bribe_other police_station police often_without_cash voted radio_news careful elections_free corruption_MP local_corruption corruption_loc_gov_officials corruption_tax_officials bribe_medical_lastyear bribe_elections_lastyear adults interested_public corruption_tr_lead bribe_water_lastyear ethnic police_roadblock countrycode latitude longitude place_id ln_investment (first) country ,by(cluster year)

. 
. 
. 
. egen xx=group(country year)
{txt}(1 missing value generated)

{com}. 
. quietly tab xx, gen(cyd)

. 
. drop xx

. 
. 
. 
. egen xx=group(year)
{txt}(1 missing value generated)

{com}. 
. quietly tab xx, gen(yd)

. 
. drop xx

. 
. 
. 
. egen xx=group(country)
{txt}(1 missing value generated)

{com}. 
. quietly tab xx, gen(cd)

. 
. drop xx

. 
. 
. 
. tsset cluster year
{res}{txt}{col 8}panel variable:  {res}cluster (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 2002 to 2015, but with gaps
{txt}{col 17}delta:  {res}1 unit

{com}. 
. 
. 
. *** Run Model 1 Regression at all $radius for cluster using site-level FEs to create FIGURE 3

. 
. local x = 1

. 
. local i = 0

. 
. while `x' < $radius + 1 {c -(}
{txt}  2{com}. 
. gen activex=active_binary_`x'
{txt}  3{com}. 
. gen inactivex=inactive_`x'
{txt}  4{com}. 
. eststo: quietly xtreg bribe_d activex  cd* yd*  age age2 female urban, fe cl(cluster)
{txt}  5{com}. 
. drop activex inactivex 
{txt}  6{com}. 
. local x = `x' + 1
{txt}  7{com}. 
. {c )-}
{txt}({res}est1{txt} stored)
({res}est2{txt} stored)
({res}est3{txt} stored)
({res}est4{txt} stored)
({res}est5{txt} stored)
({res}est6{txt} stored)
({res}est7{txt} stored)
({res}est8{txt} stored)
({res}est9{txt} stored)
({res}est10{txt} stored)
({res}est11{txt} stored)
({res}est12{txt} stored)
({res}est13{txt} stored)
({res}est14{txt} stored)
({res}est15{txt} stored)
({res}est16{txt} stored)
({res}est17{txt} stored)
({res}est18{txt} stored)
({res}est19{txt} stored)
({res}est20{txt} stored)
({res}est21{txt} stored)
({res}est22{txt} stored)
({res}est23{txt} stored)
({res}est24{txt} stored)
({res}est25{txt} stored)
({res}est26{txt} stored)
({res}est27{txt} stored)
({res}est28{txt} stored)
({res}est29{txt} stored)
({res}est30{txt} stored)
({res}est31{txt} stored)
({res}est32{txt} stored)
({res}est33{txt} stored)
({res}est34{txt} stored)
({res}est35{txt} stored)
({res}est36{txt} stored)
({res}est37{txt} stored)
({res}est38{txt} stored)
({res}est39{txt} stored)
({res}est40{txt} stored)
({res}est41{txt} stored)
({res}est42{txt} stored)
({res}est43{txt} stored)
({res}est44{txt} stored)
({res}est45{txt} stored)
({res}est46{txt} stored)
({res}est47{txt} stored)
({res}est48{txt} stored)
({res}est49{txt} stored)
({res}est50{txt} stored)
({res}est51{txt} stored)
({res}est52{txt} stored)
({res}est53{txt} stored)
({res}est54{txt} stored)
({res}est55{txt} stored)
({res}est56{txt} stored)
({res}est57{txt} stored)
({res}est58{txt} stored)
({res}est59{txt} stored)
({res}est60{txt} stored)
({res}est61{txt} stored)
({res}est62{txt} stored)
({res}est63{txt} stored)
({res}est64{txt} stored)
({res}est65{txt} stored)
({res}est66{txt} stored)
({res}est67{txt} stored)
({res}est68{txt} stored)
({res}est69{txt} stored)
({res}est70{txt} stored)
({res}est71{txt} stored)
({res}est72{txt} stored)
({res}est73{txt} stored)
({res}est74{txt} stored)
({res}est75{txt} stored)
({res}est76{txt} stored)
({res}est77{txt} stored)
({res}est78{txt} stored)
({res}est79{txt} stored)
({res}est80{txt} stored)
({res}est81{txt} stored)
({res}est82{txt} stored)
({res}est83{txt} stored)
({res}est84{txt} stored)
({res}est85{txt} stored)
({res}est86{txt} stored)
({res}est87{txt} stored)
({res}est88{txt} stored)
({res}est89{txt} stored)
({res}est90{txt} stored)
({res}est91{txt} stored)
({res}est92{txt} stored)
({res}est93{txt} stored)
({res}est94{txt} stored)
({res}est95{txt} stored)
({res}est96{txt} stored)
({res}est97{txt} stored)
({res}est98{txt} stored)
({res}est99{txt} stored)
({res}est100{txt} stored)

{com}. 
. 
. 
. esttab using "$data\ISQ_REPLICATE_figure3.csv", b(5) se(5) plain replace
{res}{txt}(note: file G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_REPLICATE_figure3.csv not found)
(output written to {browse  `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_REPLICATE_figure3.csv"'})

{com}. 
. estimates drop est*

. 
. 
. 
. ****IN R

. 
. 
. 
. *** Need to manually transpose and calculate CIs from "$data\ISQ_REPLICATE_figure3.csv" to generate file figure3.csv

. 
. *mydata <- read.csv("figure3.csv", header=TRUE)

. 
. *distance_cluster <- ggplot(mydata, aes(x=Capture_Distance, y=Beta_Active)) + geom_point(colour='red', size=2, shape=8) + geom_errorbar(aes(ymin=lci, ymax=uci), colour='red', width=.1) + stat_smooth(method=loess, alpha=.4) + ylab("Regression Coefficient on Active") + xlab("Capture Radii KM") + ggtitle("Figure 2: Coefficient on Active FDI at Different Capture Radii by Cluster Quasi-Panel") + theme(plot.title = element_text(hjust = 0.5))+ scale_x_continuous(breaks=seq(0, 100, 10))

. 
. 
. 
. 
. 
. **Table A5 - Panel Results

. 
. 
. 
. *Model 1 - Binary 50km

. 
. gen active=active_binary_50

. 
. xtreg bribe_d active yd*  age age2 female urban, fe cl(cluster)
{p 0 6 2}{txt}note: yd12 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    11,231
{txt}Group variable: {res}cluster{txt}{col 49}Number of groups{col 67}={col 69}{res}     8,776

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0877{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0461{col 63}{txt}avg{col 67}={col 69}{res}       1.3
{txt}     overall = {res}0.0457{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}8775{txt}){col 67}={col 70}{res}    15.49
{txt}corr(u_i, Xb){col 16}= {res}-0.0228{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}active {c |}{col 14}{res}{space 2}-.0223802{col 26}{space 2} .0119641{col 37}{space 1}   -1.87{col 46}{space 3}0.061{col 54}{space 4}-.0458326{col 67}{space 3} .0010723
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0725453{col 26}{space 2} .0174745{col 37}{space 1}    4.15{col 46}{space 3}0.000{col 54}{space 4} .0382913{col 67}{space 3} .1067993
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0700804{col 26}{space 2} .0196772{col 37}{space 1}    3.56{col 46}{space 3}0.000{col 54}{space 4} .0315085{col 67}{space 3} .1086522
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2}  .043927{col 26}{space 2} .0421733{col 37}{space 1}    1.04{col 46}{space 3}0.298{col 54}{space 4}-.0387424{col 67}{space 3} .1265965
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0660857{col 26}{space 2}  .015981{col 37}{space 1}    4.14{col 46}{space 3}0.000{col 54}{space 4} .0347591{col 67}{space 3} .0974122
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}  .111873{col 26}{space 2}  .017746{col 37}{space 1}    6.30{col 46}{space 3}0.000{col 54}{space 4} .0770866{col 67}{space 3} .1466594
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0753444{col 26}{space 2} .0140363{col 37}{space 1}    5.37{col 46}{space 3}0.000{col 54}{space 4}   .04783{col 67}{space 3} .1028588
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1588507{col 26}{space 2} .0406054{col 37}{space 1}    3.91{col 46}{space 3}0.000{col 54}{space 4} .0792547{col 67}{space 3} .2384467
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2}  .071288{col 26}{space 2} .0149559{col 37}{space 1}    4.77{col 46}{space 3}0.000{col 54}{space 4}  .041971{col 67}{space 3} .1006051
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0640784{col 26}{space 2} .0150388{col 37}{space 1}    4.26{col 46}{space 3}0.000{col 54}{space 4} .0345989{col 67}{space 3}  .093558
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0870275{col 26}{space 2} .0158478{col 37}{space 1}    5.49{col 46}{space 3}0.000{col 54}{space 4}  .055962{col 67}{space 3}  .118093
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0130632{col 26}{space 2} .0149247{col 37}{space 1}   -0.88{col 46}{space 3}0.381{col 54}{space 4}-.0423192{col 67}{space 3} .0161928
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0004223{col 26}{space 2}  .002372{col 37}{space 1}    0.18{col 46}{space 3}0.859{col 54}{space 4}-.0042274{col 67}{space 3}  .005072
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0024071{col 26}{space 2} .0025533{col 37}{space 1}   -0.94{col 46}{space 3}0.346{col 54}{space 4}-.0074121{col 67}{space 3} .0025979
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1361763{col 26}{space 2} .0598594{col 37}{space 1}   -2.27{col 46}{space 3}0.023{col 54}{space 4}-.2535148{col 67}{space 3}-.0188378
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0177144{col 26}{space 2} .0116376{col 37}{space 1}    1.52{col 46}{space 3}0.128{col 54}{space 4} -.005098{col 67}{space 3} .0405269
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2038989{col 26}{space 2} .0605061{col 37}{space 1}    3.37{col 46}{space 3}0.001{col 54}{space 4} .0852928{col 67}{space 3}  .322505
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .18245843
     {txt}sigma_e {c |} {res} .15159977
         {txt}rho {c |} {res} .59159353{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A5.doc, ctitle(Binary DV) keep(active)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Site FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.txt""':seeout}

{com}. 
. drop active

. 
. 
. 
. *Model 2 - Count 50km

. 
. gen ln_active_count_50=ln(active_count_50+1)

. 
. xtreg bribe_d ln_active_count_50 yd*  age age2 female urban, fe cl(cluster)
{p 0 6 2}{txt}note: yd12 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    11,231
{txt}Group variable: {res}cluster{txt}{col 49}Number of groups{col 67}={col 69}{res}     8,776

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0888{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0475{col 63}{txt}avg{col 67}={col 69}{res}       1.3
{txt}     overall = {res}0.0473{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}8775{txt}){col 67}={col 70}{res}    15.71
{txt}corr(u_i, Xb){col 16}= {res}-0.0202{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
ln_active~50 {c |}{col 14}{res}{space 2}-.0112756{col 26}{space 2} .0048415{col 37}{space 1}   -2.33{col 46}{space 3}0.020{col 54}{space 4} -.020766{col 67}{space 3}-.0017852
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0628658{col 26}{space 2} .0190051{col 37}{space 1}    3.31{col 46}{space 3}0.001{col 54}{space 4} .0256114{col 67}{space 3} .1001202
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0643613{col 26}{space 2} .0202981{col 37}{space 1}    3.17{col 46}{space 3}0.002{col 54}{space 4} .0245722{col 67}{space 3} .1041504
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0380992{col 26}{space 2} .0423424{col 37}{space 1}    0.90{col 46}{space 3}0.368{col 54}{space 4}-.0449017{col 67}{space 3} .1211002
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0590857{col 26}{space 2} .0167879{col 37}{space 1}    3.52{col 46}{space 3}0.000{col 54}{space 4} .0261774{col 67}{space 3}  .091994
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1043571{col 26}{space 2}  .018611{col 37}{space 1}    5.61{col 46}{space 3}0.000{col 54}{space 4} .0678752{col 67}{space 3}  .140839
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0698376{col 26}{space 2} .0148345{col 37}{space 1}    4.71{col 46}{space 3}0.000{col 54}{space 4} .0407585{col 67}{space 3} .0989166
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1491702{col 26}{space 2} .0406964{col 37}{space 1}    3.67{col 46}{space 3}0.000{col 54}{space 4} .0693958{col 67}{space 3} .2289446
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0679782{col 26}{space 2} .0151666{col 37}{space 1}    4.48{col 46}{space 3}0.000{col 54}{space 4}  .038248{col 67}{space 3} .0977084
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0599705{col 26}{space 2} .0153743{col 37}{space 1}    3.90{col 46}{space 3}0.000{col 54}{space 4} .0298333{col 67}{space 3} .0901077
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0843962{col 26}{space 2} .0158964{col 37}{space 1}    5.31{col 46}{space 3}0.000{col 54}{space 4} .0532355{col 67}{space 3} .1155569
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0158038{col 26}{space 2} .0151275{col 37}{space 1}   -1.04{col 46}{space 3}0.296{col 54}{space 4}-.0454572{col 67}{space 3} .0138496
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0004849{col 26}{space 2} .0023753{col 37}{space 1}    0.20{col 46}{space 3}0.838{col 54}{space 4}-.0041714{col 67}{space 3} .0051411
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0024548{col 26}{space 2} .0025565{col 37}{space 1}   -0.96{col 46}{space 3}0.337{col 54}{space 4}-.0074661{col 67}{space 3} .0025565
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1380697{col 26}{space 2} .0597426{col 37}{space 1}   -2.31{col 46}{space 3}0.021{col 54}{space 4}-.2551792{col 67}{space 3}-.0209602
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0171957{col 26}{space 2} .0116418{col 37}{space 1}    1.48{col 46}{space 3}0.140{col 54}{space 4} -.005625{col 67}{space 3} .0400164
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2096136{col 26}{space 2} .0602812{col 37}{space 1}    3.48{col 46}{space 3}0.001{col 54}{space 4} .0914483{col 67}{space 3} .3277789
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .18232486
     {txt}sigma_e {c |} {res} .15150589
         {txt}rho {c |} {res} .59153898{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A5.doc, ctitle(Count Active) keep(ln_active_count_50)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Site FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.txt""':seeout}

{com}. 
. 
. 
. *Model 3 - Amount 50km

. 
. gen ln_active_amount_50=ln(active_amount_50+1)

. 
. xtreg bribe_d ln_active_amount_50 yd*  age age2 female urban, fe cl(cluster)
{p 0 6 2}{txt}note: yd12 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    11,231
{txt}Group variable: {res}cluster{txt}{col 49}Number of groups{col 67}={col 69}{res}     8,776

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0880{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0514{col 63}{txt}avg{col 67}={col 69}{res}       1.3
{txt}     overall = {res}0.0503{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}16{txt},{res}8775{txt}){col 67}={col 70}{res}    15.68
{txt}corr(u_i, Xb){col 16}= {res}-0.0070{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
ln_~mount_50 {c |}{col 14}{res}{space 2}-.0077447{col 26}{space 2} .0038103{col 37}{space 1}   -2.03{col 46}{space 3}0.042{col 54}{space 4}-.0152138{col 67}{space 3}-.0002757
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0686878{col 26}{space 2} .0189542{col 37}{space 1}    3.62{col 46}{space 3}0.000{col 54}{space 4} .0315331{col 67}{space 3} .1058425
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0667238{col 26}{space 2} .0205324{col 37}{space 1}    3.25{col 46}{space 3}0.001{col 54}{space 4} .0264754{col 67}{space 3} .1069722
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0406247{col 26}{space 2} .0425596{col 37}{space 1}    0.95{col 46}{space 3}0.340{col 54}{space 4} -.042802{col 67}{space 3} .1240515
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2}  .058526{col 26}{space 2} .0173306{col 37}{space 1}    3.38{col 46}{space 3}0.001{col 54}{space 4} .0245541{col 67}{space 3}  .092498
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2}  .102126{col 26}{space 2} .0194466{col 37}{space 1}    5.25{col 46}{space 3}0.000{col 54}{space 4} .0640061{col 67}{space 3}  .140246
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0685755{col 26}{space 2} .0155445{col 37}{space 1}    4.41{col 46}{space 3}0.000{col 54}{space 4} .0381046{col 67}{space 3} .0990464
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1448578{col 26}{space 2} .0411837{col 37}{space 1}    3.52{col 46}{space 3}0.000{col 54}{space 4}  .064128{col 67}{space 3} .2255876
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0667822{col 26}{space 2} .0154598{col 37}{space 1}    4.32{col 46}{space 3}0.000{col 54}{space 4} .0364774{col 67}{space 3} .0970871
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0592368{col 26}{space 2} .0156606{col 37}{space 1}    3.78{col 46}{space 3}0.000{col 54}{space 4} .0285384{col 67}{space 3} .0899353
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2}  .083645{col 26}{space 2} .0159511{col 37}{space 1}    5.24{col 46}{space 3}0.000{col 54}{space 4}  .052377{col 67}{space 3} .1149129
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0163173{col 26}{space 2} .0152891{col 37}{space 1}   -1.07{col 46}{space 3}0.286{col 54}{space 4}-.0462876{col 67}{space 3} .0136531
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0004334{col 26}{space 2} .0023767{col 37}{space 1}    0.18{col 46}{space 3}0.855{col 54}{space 4}-.0042256{col 67}{space 3} .0050923
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0024002{col 26}{space 2} .0025579{col 37}{space 1}   -0.94{col 46}{space 3}0.348{col 54}{space 4}-.0074143{col 67}{space 3} .0026138
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1387044{col 26}{space 2} .0597358{col 37}{space 1}   -2.32{col 46}{space 3}0.020{col 54}{space 4}-.2558006{col 67}{space 3}-.0216083
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0174618{col 26}{space 2} .0116093{col 37}{space 1}    1.50{col 46}{space 3}0.133{col 54}{space 4}-.0052952{col 67}{space 3} .0402188
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2079594{col 26}{space 2} .0601792{col 37}{space 1}    3.46{col 46}{space 3}0.001{col 54}{space 4} .0899941{col 67}{space 3} .3259247
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .18194247
     {txt}sigma_e {c |} {res} .15156897
         {txt}rho {c |} {res} .59032268{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A5.doc, ctitle(Amount Active) keep(ln_active_amount_50)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Site FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.txt""':seeout}

{com}. 
. 
. 
. *Model 4 - Count 50km low and high coor

. 
. gen ln_active_count_lc_50=ln(active_count_lc_50+1)

. 
. gen ln_active_count_hc_50=ln(active_count_hc_50+1)

. 
. xtreg bribe_d ln_active_count_hc_50 ln_active_count_lc_50 yd*  age age2 female urban, fe cl(cluster)
{p 0 6 2}{txt}note: yd12 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    11,231
{txt}Group variable: {res}cluster{txt}{col 49}Number of groups{col 67}={col 69}{res}     8,776

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0890{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0534{col 63}{txt}avg{col 67}={col 69}{res}       1.3
{txt}     overall = {res}0.0527{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}17{txt},{res}8775{txt}){col 67}={col 70}{res}    14.92
{txt}corr(u_i, Xb){col 16}= {res}-0.0094{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
ln_act~hc_50 {c |}{col 14}{res}{space 2}-.0161249{col 26}{space 2} .0093189{col 37}{space 1}   -1.73{col 46}{space 3}0.084{col 54}{space 4}-.0343921{col 67}{space 3} .0021424
{txt}ln_act~lc_50 {c |}{col 14}{res}{space 2} .0052746{col 26}{space 2} .0108128{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-.0159209{col 67}{space 3} .0264702
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2}  .061998{col 26}{space 2} .0190478{col 37}{space 1}    3.25{col 46}{space 3}0.001{col 54}{space 4} .0246599{col 67}{space 3} .0993362
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0672882{col 26}{space 2} .0202655{col 37}{space 1}    3.32{col 46}{space 3}0.001{col 54}{space 4} .0275632{col 67}{space 3} .1070133
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0448534{col 26}{space 2}  .041907{col 37}{space 1}    1.07{col 46}{space 3}0.285{col 54}{space 4}-.0372941{col 67}{space 3} .1270008
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2}  .059734{col 26}{space 2} .0168207{col 37}{space 1}    3.55{col 46}{space 3}0.000{col 54}{space 4} .0267615{col 67}{space 3} .0927064
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1054304{col 26}{space 2} .0187503{col 37}{space 1}    5.62{col 46}{space 3}0.000{col 54}{space 4} .0686754{col 67}{space 3} .1421854
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0703286{col 26}{space 2} .0149585{col 37}{space 1}    4.70{col 46}{space 3}0.000{col 54}{space 4} .0410065{col 67}{space 3} .0996507
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1485227{col 26}{space 2} .0407497{col 37}{space 1}    3.64{col 46}{space 3}0.000{col 54}{space 4} .0686437{col 67}{space 3} .2284016
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0684652{col 26}{space 2} .0152696{col 37}{space 1}    4.48{col 46}{space 3}0.000{col 54}{space 4} .0385333{col 67}{space 3} .0983972
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0592211{col 26}{space 2} .0154499{col 37}{space 1}    3.83{col 46}{space 3}0.000{col 54}{space 4} .0289356{col 67}{space 3} .0895065
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0840697{col 26}{space 2}   .01592{col 37}{space 1}    5.28{col 46}{space 3}0.000{col 54}{space 4} .0528629{col 67}{space 3} .1152766
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2}-.0169369{col 26}{space 2} .0152156{col 37}{space 1}   -1.11{col 46}{space 3}0.266{col 54}{space 4}-.0467629{col 67}{space 3} .0128892
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0006236{col 26}{space 2} .0023849{col 37}{space 1}    0.26{col 46}{space 3}0.794{col 54}{space 4}-.0040514{col 67}{space 3} .0052987
{txt}{space 8}age2 {c |}{col 14}{res}{space 2} -.002607{col 26}{space 2} .0025644{col 37}{space 1}   -1.02{col 46}{space 3}0.309{col 54}{space 4}-.0076337{col 67}{space 3} .0024198
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1366124{col 26}{space 2} .0598974{col 37}{space 1}   -2.28{col 46}{space 3}0.023{col 54}{space 4}-.2540253{col 67}{space 3}-.0191995
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0172929{col 26}{space 2} .0116374{col 37}{space 1}    1.49{col 46}{space 3}0.137{col 54}{space 4}-.0055192{col 67}{space 3} .0401049
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2056487{col 26}{space 2} .0604407{col 37}{space 1}    3.40{col 46}{space 3}0.001{col 54}{space 4} .0871707{col 67}{space 3} .3241266
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .18174337
     {txt}sigma_e {c |} {res} .15152312
         {txt}rho {c |} {res} .58993937{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A5.doc, ctitle(Count Active Corruption) keep(ln_active*)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Site FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.txt""':seeout}

{com}. 
. 
. 
. *Model 5 - Count 50km Signature Counts

. 
. gen ln_active_count_sig_50=ln(active_count_sig_50+1)

. 
. gen ln_active_count_nsig_50=ln(active_count_nsig_50+1)

. 
. xtreg bribe_d ln_active_count_sig_50 ln_active_count_nsig_50 yd*  age age2 female urban, fe cl(cluster)
{p 0 6 2}{txt}note: yd12 omitted because of collinearity{p_end}
{res}
{txt}Fixed-effects (within) regression{col 49}Number of obs{col 67}={col 69}{res}    11,231
{txt}Group variable: {res}cluster{txt}{col 49}Number of groups{col 67}={col 69}{res}     8,776

{txt}R-sq:{col 49}Obs per group:
     within  = {res}0.0886{col 63}{txt}min{col 67}={col 69}{res}         1
{txt}     between = {res}0.0491{col 63}{txt}avg{col 67}={col 69}{res}       1.3
{txt}     overall = {res}0.0486{col 63}{txt}max{col 67}={col 69}{res}         6

{txt}{col 49}F({res}17{txt},{res}8775{txt}){col 67}={col 70}{res}    14.74
{txt}corr(u_i, Xb){col 16}= {res}-0.0152{txt}{col 49}Prob > F{col 67}={col 73}{res}0.0000

{txt}{ralign 78:(Std. Err. adjusted for {res:8,776} clusters in cluster)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}     bribe_d{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
ln_a~_sig_50 {c |}{col 14}{res}{space 2} -.009454{col 26}{space 2} .0089002{col 37}{space 1}   -1.06{col 46}{space 3}0.288{col 54}{space 4}-.0269004{col 67}{space 3} .0079924
{txt}ln_a~nsig_50 {c |}{col 14}{res}{space 2}-.0027821{col 26}{space 2} .0118526{col 37}{space 1}   -0.23{col 46}{space 3}0.814{col 54}{space 4}-.0260159{col 67}{space 3} .0204517
{txt}{space 9}yd1 {c |}{col 14}{res}{space 2} .0645489{col 26}{space 2} .0188972{col 37}{space 1}    3.42{col 46}{space 3}0.001{col 54}{space 4} .0275059{col 67}{space 3} .1015919
{txt}{space 9}yd2 {c |}{col 14}{res}{space 2} .0656002{col 26}{space 2} .0202148{col 37}{space 1}    3.25{col 46}{space 3}0.001{col 54}{space 4} .0259745{col 67}{space 3} .1052258
{txt}{space 9}yd3 {c |}{col 14}{res}{space 2} .0414715{col 26}{space 2} .0422419{col 37}{space 1}    0.98{col 46}{space 3}0.326{col 54}{space 4}-.0413326{col 67}{space 3} .1242756
{txt}{space 9}yd4 {c |}{col 14}{res}{space 2} .0596254{col 26}{space 2}  .016868{col 37}{space 1}    3.53{col 46}{space 3}0.000{col 54}{space 4} .0265602{col 67}{space 3} .0926906
{txt}{space 9}yd5 {c |}{col 14}{res}{space 2} .1045366{col 26}{space 2} .0187408{col 37}{space 1}    5.58{col 46}{space 3}0.000{col 54}{space 4} .0678003{col 67}{space 3}  .141273
{txt}{space 9}yd6 {c |}{col 14}{res}{space 2} .0700839{col 26}{space 2} .0149958{col 37}{space 1}    4.67{col 46}{space 3}0.000{col 54}{space 4} .0406886{col 67}{space 3} .0994791
{txt}{space 9}yd7 {c |}{col 14}{res}{space 2} .1483231{col 26}{space 2} .0407437{col 37}{space 1}    3.64{col 46}{space 3}0.000{col 54}{space 4} .0684559{col 67}{space 3} .2281903
{txt}{space 9}yd8 {c |}{col 14}{res}{space 2} .0679336{col 26}{space 2} .0152982{col 37}{space 1}    4.44{col 46}{space 3}0.000{col 54}{space 4} .0379455{col 67}{space 3} .0979217
{txt}{space 9}yd9 {c |}{col 14}{res}{space 2} .0599254{col 26}{space 2} .0154598{col 37}{space 1}    3.88{col 46}{space 3}0.000{col 54}{space 4} .0296206{col 67}{space 3} .0902301
{txt}{space 8}yd10 {c |}{col 14}{res}{space 2} .0841418{col 26}{space 2} .0159262{col 37}{space 1}    5.28{col 46}{space 3}0.000{col 54}{space 4} .0529228{col 67}{space 3} .1153608
{txt}{space 8}yd11 {c |}{col 14}{res}{space 2} -.016151{col 26}{space 2} .0151855{col 37}{space 1}   -1.06{col 46}{space 3}0.288{col 54}{space 4}-.0459181{col 67}{space 3} .0136161
{txt}{space 8}yd12 {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (omitted)
{space 9}age {c |}{col 14}{res}{space 2} .0004787{col 26}{space 2} .0023831{col 37}{space 1}    0.20{col 46}{space 3}0.841{col 54}{space 4}-.0041926{col 67}{space 3} .0051501
{txt}{space 8}age2 {c |}{col 14}{res}{space 2}-.0024482{col 26}{space 2} .0025652{col 37}{space 1}   -0.95{col 46}{space 3}0.340{col 54}{space 4}-.0074766{col 67}{space 3} .0025802
{txt}{space 6}female {c |}{col 14}{res}{space 2}-.1378535{col 26}{space 2} .0597357{col 37}{space 1}   -2.31{col 46}{space 3}0.021{col 54}{space 4}-.2549494{col 67}{space 3}-.0207576
{txt}{space 7}urban {c |}{col 14}{res}{space 2} .0172252{col 26}{space 2} .0116392{col 37}{space 1}    1.48{col 46}{space 3}0.139{col 54}{space 4}-.0055904{col 67}{space 3} .0400408
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2082847{col 26}{space 2} .0604053{col 37}{space 1}    3.45{col 46}{space 3}0.001{col 54}{space 4} .0898762{col 67}{space 3} .3266932
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     sigma_u {c |} {res} .18216282
     {txt}sigma_e {c |} {res} .15155423
         {txt}rho {c |} {res} .59095502{txt}   (fraction of variance due to u_i)
{hline 13}{c BT}{hline 64}

{com}. 
. outreg2 using $results/ISQ_REPLICATE_A5.doc, ctitle(Count Active WGB) keep(ln_active*)  slow(100) addtext(Baseline controls, YES, Year FE, YES, Site FE, YES) 
{txt}{stata `"shellout using `"C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc"'"':C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.doc}
{browse `"G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication"' :dir}{com} : {txt}{stata `"seeout using "C:\Results\ISQ_Replicate/ISQ_REPLICATE_A5.txt""':seeout}

{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}G:\My Drive\Aid_FDI_GEOREFERENCE\Data\ISQ_Replication\ISQ_Replication.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}15 Aug 2020, 12:28:01
{txt}{.-}
{smcl}
{txt}{sf}{ul off}